Dagger
Search

melange

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/opopops/daggerverse/melange@v1.8.3

Entrypoint

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
imageString "cgr.dev/chainguard/wolfi-base:latest"wolfi-base image
versionString "latest"Melange version
userString "65532"Image user
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
func (m *MyModule) Example() *dagger.Melange  {
	return dag.
			Melange()
}
@function
def example() -> dagger.Melange:
	return (
		dag.melange()
	)
@func()
example(): Melange {
	return dag
		.melange()
}

Types

SigningKey 🔗

Signing Key

name() 🔗

Return Type
String 
Example
Function MelangeSigningKey.name is not accessible from the melange module
Function MelangeSigningKey.name is not accessible from the melange module
Function MelangeSigningKey.name is not accessible from the melange module
Function MelangeSigningKey.name is not accessible from the melange module

private() 🔗

Return Type
Secret 
Example
Function MelangeSigningKey.private is not accessible from the melange module
Function MelangeSigningKey.private is not accessible from the melange module
Function MelangeSigningKey.private is not accessible from the melange module
Function MelangeSigningKey.private is not accessible from the melange module

generate() 🔗

Generate a key pair for package signing

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
nameString "melange.rsa"Key name
sizeInteger 4096the size of the prime to calculate
Example
Function MelangeSigningKey.generate is not accessible from the melange module
Function MelangeSigningKey.generate is not accessible from the melange module
Function MelangeSigningKey.generate is not accessible from the melange module
Function MelangeSigningKey.generate is not accessible from the melange module

public() 🔗

Return the public key

Return Type
File !
Example
Function MelangeSigningKey.public is not accessible from the melange module
Function MelangeSigningKey.public is not accessible from the melange module
Function MelangeSigningKey.public is not accessible from the melange module
Function MelangeSigningKey.public is not accessible from the melange module

withGenerate() 🔗

Generate a key pair for package signing for chaining (for testing purpose)

Return Type
SigningKey !
Arguments
NameTypeDefault ValueDescription
nameString "melange.rsa"Key name
sizeInteger 4096the size of the prime to calculate
Example
Function MelangeSigningKey.withGenerate is not accessible from the melange module
Function MelangeSigningKey.withGenerate is not accessible from the melange module
Function MelangeSigningKey.withGenerate is not accessible from the melange module
Function MelangeSigningKey.withGenerate is not accessible from the melange module

Melange 🔗

Melange

build() 🔗

Build a package from a YAML configuration file

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString ""Version to bump to
sourceDirDirectory nullDirectory used for included sources
signingKeySecret nullKey to use for signing
arch[Scalar ! ] []Target architectures
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 build --config file:path
func (m *MyModule) Example(config *dagger.File) *dagger.Directory  {
	return dag.
			Melange().
			Build(config)
}
@function
def example(config: dagger.File) -> dagger.Directory:
	return (
		dag.melange()
		.build(config)
	)
@func()
example(config: File): Directory {
	return dag
		.melange()
		.build(config)
}

bump() 🔗

Update a Melange YAML file to reflect a new package version

Return Type
File !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString !-Version to bump to
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 bump --config file:path --version string
func (m *MyModule) Example(config *dagger.File, version string) *dagger.File  {
	return dag.
			Melange().
			Bump(config, version)
}
@function
def example(config: dagger.File, version: str) -> dagger.File:
	return (
		dag.melange()
		.bump(config, version)
	)
@func()
example(config: File, version: string): File {
	return dag
		.melange()
		.bump(config, version)
}

container() 🔗

Returns melange container

Return Type
Container !
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 container
func (m *MyModule) Example() *dagger.Container  {
	return dag.
			Melange().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.melange()
		.container()
	)
@func()
example(): Container {
	return dag
		.melange()
		.container()
}

hasSigningKey() 🔗

Check if signing key is present

Return Type
Boolean !
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 has-signing-key
func (m *MyModule) Example(ctx context.Context) bool  {
	return dag.
			Melange().
			HasSigningKey(ctx)
}
@function
async def example() -> bool:
	return await (
		dag.melange()
		.has_signing_key()
	)
@func()
async example(): Promise<boolean> {
	return dag
		.melange()
		.hasSigningKey()
}

keygen() 🔗

Generate a key pair for package signing

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
nameString "melange.rsa"Key name
keySizeInteger 4096the size of the prime to calculate
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 keygen
func (m *MyModule) Example() *dagger.Directory  {
	return dag.
			Melange().
			Keygen()
}
@function
def example() -> dagger.Directory:
	return (
		dag.melange()
		.keygen()
	)
@func()
example(): Directory {
	return dag
		.melange()
		.keygen()
}

publicKey() 🔗

Returns the public key

Return Type
File !
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 public-key
func (m *MyModule) Example() *dagger.File  {
	return dag.
			Melange().
			PublicKey()
}
@function
def example() -> dagger.File:
	return (
		dag.melange()
		.public_key()
	)
@func()
example(): File {
	return dag
		.melange()
		.publicKey()
}

withBuild() 🔗

Build a package from a YAML configuration file (for chaining)

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString ""Version to bump to
signingKeySecret nullKey to use for signing
arch[Scalar ! ] []Target architectures
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 with-build --config file:path
func (m *MyModule) Example(config *dagger.File) *dagger.Melange  {
	return dag.
			Melange().
			WithBuild(config)
}
@function
def example(config: dagger.File) -> dagger.Melange:
	return (
		dag.melange()
		.with_build(config)
	)
@func()
example(config: File): Melange {
	return dag
		.melange()
		.withBuild(config)
}

withKeygen() 🔗

Generate a key for package signing (for chaining)

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
nameString "melange.rsa"Key name
keySizeInteger 4096the size of the prime to calculate
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 with-keygen
func (m *MyModule) Example() *dagger.Melange  {
	return dag.
			Melange().
			WithKeygen()
}
@function
def example() -> dagger.Melange:
	return (
		dag.melange()
		.with_keygen()
	)
@func()
example(): Melange {
	return dag
		.melange()
		.withKeygen()
}

withSigningKey() 🔗

Include the specified signing key (for chaining)

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
keySecret !-Key to use for signing
nameString "melange.rsa"Key name
Example
dagger -m github.com/opopops/daggerverse/melange@081f3bf7ae25bc14e4bc0558ea961bf3b48a6604 call \
 with-signing-key --key env:MYSECRET
func (m *MyModule) Example(key *dagger.Secret) *dagger.Melange  {
	return dag.
			Melange().
			WithSigningKey(key)
}
@function
def example(key: dagger.Secret) -> dagger.Melange:
	return (
		dag.melange()
		.with_signing_key(key)
	)
@func()
example(key: Secret): Melange {
	return dag
		.melange()
		.withSigningKey(key)
}