Dagger
Search

golang

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

Installation

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

Entrypoint

Return Type
Golang !
Example
dagger -m github.com/camptocamp/daggerverse/golang@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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 !
Example
dagger -m github.com/camptocamp/daggerverse/golang@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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 !
Example
dagger -m github.com/camptocamp/daggerverse/golang@eb0fcdc84d0cc1f925550bd0cc80ffc1e566804b 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()
}