golang
Install Go in containers based on Red Hat Universal Base Images.Installation
dagger install github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9
Entrypoint
Return Type
Golang !
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to configure Go |
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Go |
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Go |
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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
Name | Type | Default Value | Description |
---|---|---|---|
platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/golang@81c7c3012b2ef703465237470376a367eb20e1d9 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()
}