crane
No long description provided.
Installation
dagger install github.com/stuttgart-things/dagger/crane@v0.7.0
Entrypoint
Return Type
Crane !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
baseImage | String | - | No description provided |
version | String | - | No description provided |
insecure | Boolean | - | No description provided |
platform | String ! | "linux/amd64" | No description provided |
registry | String | - | No description provided |
username | String | - | No description provided |
password | Secret | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string
func (m *myModule) example(platform string) *dagger.Crane {
return dag.
Crane(platform)
}
@function
def example(platform: str, ) -> dagger.Crane:
return (
dag.crane(platform)
)
@func()
example(platform: string, ): Crane {
return dag
.crane(platform)
}
Types
Crane 🔗
Crane installs Crane CLI on a Wolfi base image at runtime @module
baseImage() 🔗
Base Wolfi image to use
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string base-image
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
BaseImage(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.base_image()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.baseImage()
}
version() 🔗
Crane version to install (e.g., “latest” or specific version)
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string version
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
Version(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.version()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.version()
}
insecure() 🔗
Allow insecure registry connections
Return Type
Boolean !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string insecure
func (m *myModule) example(ctx context.Context, platform string) bool {
return dag.
Crane(platform).
Insecure(ctx)
}
@function
async def example(platform: str, ) -> bool:
return await (
dag.crane(platform)
.insecure()
)
@func()
async example(platform: string, ): Promise<boolean> {
return dag
.crane(platform)
.insecure()
}
registry() 🔗
Registry to authenticate to
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string registry
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
Registry(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.registry()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.registry()
}
platform() 🔗
Image platform
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string platform
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
Platform(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.platform()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.platform()
}
username() 🔗
Username for registry authentication
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string username
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
Username(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.username()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.username()
}
password() 🔗
Password for registry authentication
Return Type
Secret !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string password
func (m *myModule) example(platform string) *dagger.Secret {
return dag.
Crane(platform).
Password()
}
@function
def example(platform: str, ) -> dagger.Secret:
return (
dag.crane(platform)
.password()
)
@func()
example(platform: string, ): Secret {
return dag
.crane(platform)
.password()
}
copy() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
password | Secret ! | - | No description provided |
craneBaseImagePath | String | "cgr.dev/chainguard/wolfi-base" | No description provided |
craneBaseImageTag | String | "latest" | No description provided |
insecure | Boolean | true | No description provided |
source | String ! | - | No description provided |
target | String ! | - | No description provided |
registry | String ! | - | No description provided |
username | String ! | - | No description provided |
platform | String | "linux/amd64" | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string copy --password env:MYSECRET --source string --target string --registry string --username string
func (m *myModule) example(ctx context.Context, platform string, password *dagger.Secret, source string, target string, registry string, username string) {
return dag.
Crane(platform).
Copy(ctx, password, source, target, registry, username)
}
@function
async def example(platform: str, password: dagger.Secret, source: str, target: str, registry: str, username: str) -> None:
return await (
dag.crane(platform)
.copy(password, source, target, registry, username)
)
@func()
async example(platform: string, password: Secret, source: string, target: string, registry: string, username: string): Promise<void> {
return dag
.crane(platform)
.copy(password, source, target, registry, username)
}
container() 🔗
Container returns a Wolfi-based container with Crane CLI installed
Return Type
Container !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string container
func (m *myModule) example(platform string) *dagger.Container {
return dag.
Crane(platform).
Container()
}
@function
def example(platform: str, ) -> dagger.Container:
return (
dag.crane(platform)
.container()
)
@func()
example(platform: string, ): Container {
return dag
.crane(platform)
.container()
}
copyImage() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | String ! | - | No description provided |
target | String ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string copy-image --source string --target string
func (m *myModule) example(ctx context.Context, platform string, source string, target string) string {
return dag.
Crane(platform).
CopyImage(ctx, source, target)
}
@function
async def example(platform: str, source: str, target: str) -> str:
return await (
dag.crane(platform)
.copy_image(source, target)
)
@func()
async example(platform: string, source: string, target: string): Promise<string> {
return dag
.crane(platform)
.copyImage(source, target)
}
testAuth() 🔗
Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/crane@059c886ba490b435e84bca3cce401ed28b459972 call \
--platform string test-auth
func (m *myModule) example(ctx context.Context, platform string) string {
return dag.
Crane(platform).
TestAuth(ctx)
}
@function
async def example(platform: str, ) -> str:
return await (
dag.crane(platform)
.test_auth()
)
@func()
async example(platform: string, ): Promise<string> {
return dag
.crane(platform)
.testAuth()
}