Dagger
Search

autodetection

Auto detect runtime information for a specific project

Installation

dagger install github.com/Dudesons/daggerverse/autodetection@v0.1.0

Entrypoint

Return Type
Autodetection
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
func (m *myModule) example() *Autodetection  {
	return dag.
			Autodetection()
}
@function
def example() -> dag.Autodetection:
	return (
		dag.autodetection()
	)
@func()
example(): Autodetection {
	return dag
		.autodetection()
}

Types

Autodetection 🔗

node() 🔗

Expose node auto dection runtime information

Return Type
NodeAnalyzer !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The path to the project to analyze
patternExclusions[String ! ] -Define patterns to exclude from the analysis
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH
func (m *myModule) example(src *Directory) *AutodetectionNodeAnalyzer  {
	return dag.
			Autodetection().
			Node(src)
}
@function
def example(src: dagger.Directory) -> dag.AutodetectionNodeAnalyzer:
	return (
		dag.autodetection()
		.node(src)
	)
@func()
example(src: Directory): AutodetectionNodeAnalyzer {
	return dag
		.autodetection()
		.node(src)
}

oci() 🔗

Expose OCI dection runtime information

Return Type
OciAnalyzer !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The path to the project to analyze
patternExclusions[String ! ] -Define patterns to exclude from the analysis
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 oci --src DIR_PATH
func (m *myModule) example(src *Directory) *AutodetectionOciAnalyzer  {
	return dag.
			Autodetection().
			Oci(src)
}
@function
def example(src: dagger.Directory) -> dag.AutodetectionOciAnalyzer:
	return (
		dag.autodetection()
		.oci(src)
	)
@func()
example(src: Directory): AutodetectionOciAnalyzer {
	return dag
		.autodetection()
		.oci(src)
}

NodeAnalyzer 🔗

matches() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 matches
func (m *myModule) example(ctx context.Context, src *Directory) []string  {
	return dag.
			Autodetection().
			Node(src).
			Matches(ctx)
}
@function
async def example(src: dagger.Directory) -> List[str]:
	return await (
		dag.autodetection()
		.node(src)
		.matches()
	)
@func()
async example(src: Directory): Promise<string[]> {
	return dag
		.autodetection()
		.node(src)
		.matches()
}

pkgJsonRep() 🔗

Return Type
String !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 pkg-json-rep
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Autodetection().
			Node(src).
			PkgJsonRep(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.autodetection()
		.node(src)
		.pkg_json_rep()
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.autodetection()
		.node(src)
		.pkgJsonRep()
}

isTest() 🔗

Return Type
Boolean !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 is-test
func (m *myModule) example(ctx context.Context, src *Directory) bool  {
	return dag.
			Autodetection().
			Node(src).
			IsTest(ctx)
}
@function
async def example(src: dagger.Directory) -> bool:
	return await (
		dag.autodetection()
		.node(src)
		.is_test()
	)
@func()
async example(src: Directory): Promise<boolean> {
	return dag
		.autodetection()
		.node(src)
		.isTest()
}

isYarn() 🔗

Return Type
Boolean !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 is-yarn
func (m *myModule) example(ctx context.Context, src *Directory) bool  {
	return dag.
			Autodetection().
			Node(src).
			IsYarn(ctx)
}
@function
async def example(src: dagger.Directory) -> bool:
	return await (
		dag.autodetection()
		.node(src)
		.is_yarn()
	)
@func()
async example(src: Directory): Promise<boolean> {
	return dag
		.autodetection()
		.node(src)
		.isYarn()
}

isNpm() 🔗

Return Type
Boolean !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 is-npm
func (m *myModule) example(ctx context.Context, src *Directory) bool  {
	return dag.
			Autodetection().
			Node(src).
			IsNpm(ctx)
}
@function
async def example(src: dagger.Directory) -> bool:
	return await (
		dag.autodetection()
		.node(src)
		.is_npm()
	)
@func()
async example(src: Directory): Promise<boolean> {
	return dag
		.autodetection()
		.node(src)
		.isNpm()
}

isPackage() 🔗

Return Type
Boolean !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 is-package
func (m *myModule) example(ctx context.Context, src *Directory) bool  {
	return dag.
			Autodetection().
			Node(src).
			IsPackage(ctx)
}
@function
async def example(src: dagger.Directory) -> bool:
	return await (
		dag.autodetection()
		.node(src)
		.is_package()
	)
@func()
async example(src: Directory): Promise<boolean> {
	return dag
		.autodetection()
		.node(src)
		.isPackage()
}

is() 🔗

Return Type
Boolean !
Arguments
NameTypeDefault ValueDescription
scriptNameString !-Define if a script is present or not in the package.json
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 is --script-name string
func (m *myModule) example(ctx context.Context, src *Directory, scriptName string) bool  {
	return dag.
			Autodetection().
			Node(src).
			Is(ctx, scriptName)
}
@function
async def example(src: dagger.Directory, script_name: str) -> bool:
	return await (
		dag.autodetection()
		.node(src)
		.is_(script_name)
	)
@func()
async example(src: Directory, scriptName: string): Promise<boolean> {
	return dag
		.autodetection()
		.node(src)
		.is(scriptName)
}

getEngineVersion() 🔗

Return Type
String !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 get-engine-version
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Autodetection().
			Node(src).
			GetEngineVersion(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.autodetection()
		.node(src)
		.get_engine_version()
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.autodetection()
		.node(src)
		.getEngineVersion()
}

getVersion() 🔗

Return Type
String !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 get-version
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Autodetection().
			Node(src).
			GetVersion(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.autodetection()
		.node(src)
		.get_version()
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.autodetection()
		.node(src)
		.getVersion()
}

getName() 🔗

Return Type
String !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 get-name
func (m *myModule) example(ctx context.Context, src *Directory) string  {
	return dag.
			Autodetection().
			Node(src).
			GetName(ctx)
}
@function
async def example(src: dagger.Directory) -> str:
	return await (
		dag.autodetection()
		.node(src)
		.get_name()
	)
@func()
async example(src: Directory): Promise<string> {
	return dag
		.autodetection()
		.node(src)
		.getName()
}

getScriptNames() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 node --src DIR_PATH \
 get-script-names
func (m *myModule) example(ctx context.Context, src *Directory) []string  {
	return dag.
			Autodetection().
			Node(src).
			GetScriptNames(ctx)
}
@function
async def example(src: dagger.Directory) -> List[str]:
	return await (
		dag.autodetection()
		.node(src)
		.get_script_names()
	)
@func()
async example(src: Directory): Promise<string[]> {
	return dag
		.autodetection()
		.node(src)
		.getScriptNames()
}

OciAnalyzer 🔗

matches() 🔗

Return Type
[String ! ] !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 oci --src DIR_PATH \
 matches
func (m *myModule) example(ctx context.Context, src *Directory) []string  {
	return dag.
			Autodetection().
			Oci(src).
			Matches(ctx)
}
@function
async def example(src: dagger.Directory) -> List[str]:
	return await (
		dag.autodetection()
		.oci(src)
		.matches()
	)
@func()
async example(src: Directory): Promise<string[]> {
	return dag
		.autodetection()
		.oci(src)
		.matches()
}

isOci() 🔗

Return Type
Boolean !
Example
dagger -m github.com/Dudesons/daggerverse/autodetection@41e1f414c163b6676acd03c184d37e3ec8a64b2b call \
 oci --src DIR_PATH \
 is-oci
func (m *myModule) example(ctx context.Context, src *Directory) bool  {
	return dag.
			Autodetection().
			Oci(src).
			IsOci(ctx)
}
@function
async def example(src: dagger.Directory) -> bool:
	return await (
		dag.autodetection()
		.oci(src)
		.is_oci()
	)
@func()
async example(src: Directory): Promise<boolean> {
	return dag
		.autodetection()
		.oci(src)
		.isOci()
}