Dagger
Search

multi

This module has been generated via dagger init and serves as a reference to basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them, as needed. They demonstrate usage of arguments and return types using simple echo and grep commands. The functions can be called from the dagger CLI or from one of the SDKs.

The first line in this comment block is a short description line and the rest is a long description with more detail on the module's purpose or usage, if appropriate. All modules should have a short description.

Installation

dagger install github.com/jpadams/cullen@1de9d22d97a8fe09162bf5298a31caa2aab8e4ca

Entrypoint

Return Type
Multi
Example
func (m *myModule) example() *Multi  {
	return dag.
			Multi()
}
@function
def example() -> dag.Multi:
	return (
		dag.multi()
	)
@func()
example(): Multi {
	return dag
		.multi()
}

Types

Multi 🔗

buildPush() 🔗

Build and push an image of a certain platform

Return Type
String !
Arguments
NameTypeDefault ValueDescription
platformString !-No description provided
imageString !-No description provided
tagString !-No description provided
Example
dagger -m github.com/jpadams/cullen@1de9d22d97a8fe09162bf5298a31caa2aab8e4ca call \
 build-push --platform string --image string --tag string
func (m *myModule) example(ctx context.Context, platform string, image string, tag string) string  {
	return dag.
			Multi().
			BuildPush(ctx, platform, image, tag)
}
@function
async def example(platform: str, image: str, tag: str) -> str:
	return await (
		dag.multi()
		.build_push(platform, image, tag)
	)
@func()
async example(platform: string, image: string, tag: string): Promise<string> {
	return dag
		.multi()
		.buildPush(platform, image, tag)
}

multiPush() 🔗

Push a multi-arch image

Return Type
String !
Arguments
NameTypeDefault ValueDescription
imageString !-No description provided
platforms[String ! ] !-No description provided
tagString !-No description provided
Example
dagger -m github.com/jpadams/cullen@1de9d22d97a8fe09162bf5298a31caa2aab8e4ca call \
 multi-push --image string --platforms string1 --platforms string2 --tag string
func (m *myModule) example(ctx context.Context, image string, platforms []string, tag string) string  {
	return dag.
			Multi().
			MultiPush(ctx, image, platforms, tag)
}
@function
async def example(image: str, platforms: List[str], tag: str) -> str:
	return await (
		dag.multi()
		.multi_push(image, platforms, tag)
	)
@func()
async example(image: string, platforms: string[], tag: string): Promise<string> {
	return dag
		.multi()
		.multiPush(image, platforms, tag)
}