Dagger
Search

golang

Install Go in containers based on Red Hat Universal Base Images.

Installation

dagger install github.com/camptocamp/daggerverse/golang@v0.2.3

Entrypoint

Return Type
Golang !
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
func (m *myModule) example() *Golang  {
	return dag.
			Golang()
}
@function
def example() -> dag.Golang:
	return (
		dag.golang()
	)
@func()
example(): Golang {
	return dag
		.golang()
}

Types

Golang 🔗

Go

configuration() 🔗

Configure Go in a container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to configure Go
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
 configuration --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Golang().
			Configuration(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.golang()
		.configuration(container)
	)
@func()
example(container: Container): Container {
	return dag
		.golang()
		.configuration(container)
}

redhatInstallation() 🔗

Install Go in a Red Hat Universal Base Image container from packages

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Go
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
 redhat-installation --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Golang().
			RedhatInstallation(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.golang()
		.redhat_installation(container)
	)
@func()
example(container: Container): Container {
	return dag
		.golang()
		.redhatInstallation(container)
}

redhatContainer() 🔗

Get a Red Hat Universal Base Image container with Go

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
 redhat-container
func (m *myModule) example() *Container  {
	return dag.
			Golang().
			RedhatContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.golang()
		.redhat_container()
	)
@func()
example(): Container {
	return dag
		.golang()
		.redhatContainer()
}

redhatMinimalInstallation() 🔗

Install Go in a Red Hat Minimal Universal Base Image container from packages

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Go
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
 redhat-minimal-installation --container IMAGE:TAG
func (m *myModule) example(container *Container) *Container  {
	return dag.
			Golang().
			RedhatMinimalInstallation(container)
}
@function
def example(container: dagger.Container) -> dagger.Container:
	return (
		dag.golang()
		.redhat_minimal_installation(container)
	)
@func()
example(container: Container): Container {
	return dag
		.golang()
		.redhatMinimalInstallation(container)
}

redhatMinimalContainer() 🔗

Get a Red Hat Minimal Universal Base Image container with Go

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
platformScalar -Platform to get container for
Example
dagger -m github.com/camptocamp/daggerverse/golang@390067481e0dc81bccf29068fab11d9918c49e2f call \
 redhat-minimal-container
func (m *myModule) example() *Container  {
	return dag.
			Golang().
			RedhatMinimalContainer()
}
@function
def example() -> dagger.Container:
	return (
		dag.golang()
		.redhat_minimal_container()
	)
@func()
example(): Container {
	return dag
		.golang()
		.redhatMinimalContainer()
}