Dagger
Search

hello-dagger

No long description provided.

Installation

dagger install github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f

Entrypoint

Return Type
HelloDagger
Example
dagger -m github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f call \
func (m *myModule) example() *HelloDagger  {
	return dag.
			HelloDagger()
}
@function
def example() -> dag.HelloDagger:
	return (
		dag.hello_dagger()
	)
@func()
example(): HelloDagger {
	return dag
		.helloDagger()
}

Types

HelloDagger 🔗

publish() 🔗

Publish the application container after building and testing it on-the-fly

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
Example
dagger -m github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f call \
 publish
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			HelloDagger().
			Publish(ctx)
}
@function
async def example() -> str:
	return await (
		dag.hello_dagger()
		.publish()
	)
@func()
async example(): Promise<string> {
	return dag
		.helloDagger()
		.publish()
}

build() 🔗

Build the application container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory -No description provided
Example
dagger -m github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f call \
 build
func (m *myModule) example() *Container  {
	return dag.
			HelloDagger().
			Build()
}
@function
def example() -> dagger.Container:
	return (
		dag.hello_dagger()
		.build()
	)
@func()
example(): Container {
	return dag
		.helloDagger()
		.build()
}

test() 🔗

Return the result of running unit tests

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f call \
 test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			HelloDagger().
			Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.hello_dagger()
		.test(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.helloDagger()
		.test(source)
}

buildEnv() 🔗

Build a ready-to-use development environment

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/jpadams/hello-dagger-ts@3f41c53b2195049fd578db5ed51037de3fb9c26f call \
 build-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			HelloDagger().
			BuildEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.hello_dagger()
		.build_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.helloDagger()
		.buildEnv(source)
}