Documentation
¶
Index ¶
- Constants
- type Depended
- type Env
- type HealthCheckConfig
- type Mapping
- type ModHelper
- func CapAdd(svcName string, caps ...string) ModHelper
- func CapDrop(svcName string, caps ...string) ModHelper
- func CapDropAll(svcName string) ModHelper
- func Command(svcName string, command []string) ModHelper
- func ContainerName(svcName string) ModHelper
- func CustomLabels(svcName string, labels map[string]string) ModHelper
- func DependsOn(svcName string, dependsOnService ...Depended) ModHelper
- func Entrypoint(svcName string, name string, args ...string) ModHelper
- func Environment(svcName string, envs ...Env) ModHelper
- func Extension(svcName, name string, v any) ModHelper
- func HealthCheck(svcName string, conf HealthCheckConfig) ModHelper
- func Hostname(svcName, hostname string) ModHelper
- func Image(svcName, image string) ModHelper
- func Labels(svcName string, labels map[string]string) ModHelper
- func MountTmpFs(svcName string, mounts ...TmpFs) ModHelper
- func Network(svcName, name string, conf *composeTypes.ServiceNetworkConfig) ModHelper
- func Platform(svcName, platform string) ModHelper
- func Profiles(svcName string, profiles ...string) ModHelper
- func ProjectNetwork(name string, conf *composeTypes.NetworkConfig) ModHelper
- func ProjectSecrets(secrets ...Secret) ModHelper
- func PublishPort(svcName string, publishPort, targetPort uint16) ModHelper
- func PullPolicy(svcName, pullPolicy string) ModHelper
- func ReadOnlyRootFilesystem(svcName string) ModHelper
- func RestartPolicy(svcName, restartPolicy string) ModHelper
- func Secrets(svcName string, secrets ...Secret) ModHelper
- func SecretsPermission(svcName string, secret Secret) ModHelper
- func SecurityOpts(svcName string, securityOpts ...string) ModHelper
- func SecurityOptsNoNewPrivileges(svcName string) ModHelper
- func User(svcName, user, group string) ModHelper
- func Volumes(svcName string, volumes ...string) ModHelper
- type ModHelpers
- type Secret
- type TmpFs
Constants ¶
View Source
const SecretsPath = "/run/adi_secrets"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckConfig ¶
type ModHelper ¶
type ModHelper func(*composeTypes.Project) error
func CapDropAll ¶
func ContainerName ¶
func Environment ¶
func HealthCheck ¶
func HealthCheck(svcName string, conf HealthCheckConfig) ModHelper
func MountTmpFs ¶
func Network ¶
func Network(svcName, name string, conf *composeTypes.ServiceNetworkConfig) ModHelper
func ProjectNetwork ¶
func ProjectNetwork(name string, conf *composeTypes.NetworkConfig) ModHelper
func ProjectSecrets ¶
func PublishPort ¶
func PullPolicy ¶
func ReadOnlyRootFilesystem ¶
func RestartPolicy ¶
func SecretsPermission ¶
func SecurityOpts ¶
type ModHelpers ¶
type ModHelpers []ModHelper
func NewModHelpers ¶
func NewModHelpers() ModHelpers
func (*ModHelpers) Apply ¶
func (h *ModHelpers) Apply(prj *composeTypes.Project) error
Click to show internal directories.
Click to hide internal directories.