containerd
Collection of utility functions for containerdInstallation
dagger install github.com/levlaz/daggerverse/containerd@v0.2.0
Entrypoint
Return Type
Containerd
Example
dagger -m github.com/levlaz/daggerverse/containerd@c9905b9550021591e15b5346574dd0114e412194 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 🔗
Containerd
architectureOf() 🔗
returns the architecture of the provided platform
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar ! | - | valid platform value from OCI Image Index Specification |
Example
dagger -m github.com/levlaz/daggerverse/containerd@c9905b9550021591e15b5346574dd0114e412194 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)
}