Dagger
Search

containerd

containerd utilities

Installation

dagger install github.com/levlaz/daggerverse/containerd@v0.1.2

Entrypoint

Return Type
Containerd
Example
dagger -m github.com/levlaz/daggerverse/containerd@abcd1a95cef14ad336ca21a9ab836869582617bb call \
func (m *myModule) example() *Containerd  {
	return dag.
			Containerd()
}
@function
def example() -> dag.Containerd:
	return (
		dag.containerd()
	)
@func()
example(): Containerd {
	return dag
		.containerd()
}

Types

Containerd 🔗

architectureOf() 🔗

returns the architecture of the provided platform

Return Type
String !
Arguments
NameTypeDefault ValueDescription
platformScalar !-valid platform value from OCI Image Index Specification
Example
dagger -m github.com/levlaz/daggerverse/containerd@abcd1a95cef14ad336ca21a9ab836869582617bb call \
 architecture-of
func (m *myModule) example(ctx context.Context, platform ) string  {
	return dag.
			Containerd().
			ArchitectureOf(ctx, platform)
}
@function
async def example(platform: ) -> str:
	return await (
		dag.containerd()
		.architecture_of(platform)
	)
@func()
async example(platform: ): Promise<string> {
	return dag
		.containerd()
		.architectureOf(platform)
}