Dagger
Search

crane

No long description provided.

Installation

dagger install github.com/stuttgart-things/dagger/crane@v0.7.0

Entrypoint

Return Type
Crane !
Arguments
NameTypeDefault ValueDescription
baseImageString -No description provided
versionString -No description provided
insecureBoolean -No description provided
platformString !"linux/amd64"No description provided
registryString -No description provided
usernameString -No description provided
passwordSecret -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
NameTypeDefault ValueDescription
passwordSecret !-No description provided
craneBaseImagePathString "cgr.dev/chainguard/wolfi-base"No description provided
craneBaseImageTagString "latest"No description provided
insecureBoolean trueNo description provided
sourceString !-No description provided
targetString !-No description provided
registryString !-No description provided
usernameString !-No description provided
platformString "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
NameTypeDefault ValueDescription
sourceString !-No description provided
targetString !-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()
}