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.3.5

Entrypoint

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
imageString !"cgr.dev/chainguard/wolfi-base:latest"Melange image
versionString nullNo description provided
registryUsernameString nullNo description provided
registryPasswordSecret nullNo description provided
userString "0"No description provided
containerContainer nullNo description provided
signingKeyFile nullNo description provided
publicKeyFile nullNo description provided
Example
func (m *myModule) example(image string) *Melange  {
	return dag.
			Melange(image)
}

Types

Melange 🔗

image() 🔗

Melange image

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, image string) string  {
	return dag.
			Melange(image).
			Image(ctx)
}

version() 🔗

Return Type
String 
Example
func (m *myModule) example(ctx context.Context, image string) string  {
	return dag.
			Melange(image).
			Version(ctx)
}

registryUsername() 🔗

Return Type
String 
Example
func (m *myModule) example(ctx context.Context, image string) string  {
	return dag.
			Melange(image).
			RegistryUsername(ctx)
}

registryPassword() 🔗

Return Type
Secret 
Example
func (m *myModule) example(image string) *Secret  {
	return dag.
			Melange(image).
			RegistryPassword()
}

user() 🔗

Return Type
String 
Example
func (m *myModule) example(ctx context.Context, image string) string  {
	return dag.
			Melange(image).
			User(ctx)
}

build() 🔗

Build a package from a YAML configuration file

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString nullNo description provided
sourceDirDirectory nullNo description provided
signingKeyFile nullNo description provided
archString nullNo description provided
Example
func (m *myModule) example(image string, config *File) *Directory  {
	return dag.
			Melange(image).
			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
func (m *myModule) example(image string, config *File, version string) *File  {
	return dag.
			Melange(image).
			Bump(config, version)
}

container() 🔗

Returns container

Return Type
Container !
Example
func (m *myModule) example(image string) *Container  {
	return dag.
			Melange(image).
			Container()
}

keygen() 🔗

Generate a key for package signing

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
keySizeInteger !4096the size of the prime to calculate
Example
func (m *myModule) example(image string, keySize int) *Directory  {
	return dag.
			Melange(image).
			Keygen(keySize)
}

publicKey() 🔗

Return the generated public key

Return Type
File !
Example
func (m *myModule) example(image string) *File  {
	return dag.
			Melange(image).
			PublicKey()
}

signingKey() 🔗

Return the generated signing key

Return Type
File !
Example
func (m *myModule) example(image string) *File  {
	return dag.
			Melange(image).
			SigningKey()
}

withBuild() 🔗

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

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString nullNo description provided
signingKeyFile nullNo description provided
archString nullNo description provided
Example
func (m *myModule) example(image string, config *File) *Melange  {
	return dag.
			Melange(image).
			WithBuild(config)
}

withBump() 🔗

Update a Melange YAML file to reflect a new package version for chaining

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
configFile !-Config file
versionString !-Version to bump to
Example
func (m *myModule) example(image string, config *File, version string) *Melange  {
	return dag.
			Melange(image).
			WithBump(config, version)
}

withKeygen() 🔗

Generate a key for package signing for chaining

Return Type
Melange !
Arguments
NameTypeDefault ValueDescription
keySizeInteger !4096the size of the prime to calculate
Example
func (m *myModule) example(image string, keySize int) *Melange  {
	return dag.
			Melange(image).
			WithKeygen(keySize)
}