internal

package
v0.0.0-...-76433b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelService = labelNamespace + ".service"
	LabelNetwork = labelNamespace + ".network"
	LabelVolume  = labelNamespace + ".volume"
	LabelProject = labelNamespace + ".project"
	LabelConfig  = labelNamespace + ".config"
)

Variables

This section is empty.

Functions

func BuildContainerPortBindingsOptions

func BuildContainerPortBindingsOptions(serviceConfig compose.ServiceConfig) nat.PortMap

func BuildDefaultNetworkConfig

func BuildDefaultNetworkConfig(serviceConfig compose.ServiceConfig, networkMode container.NetworkMode) *network.NetworkingConfig

func CollectContainers

func CollectContainers(cli *client.Client, project string) (map[string][]types.Container, error)

func ConnectContainerToNetworks

func ConnectContainerToNetworks(context context.Context, cli *client.Client,
	serviceConfig compose.ServiceConfig, containerID string, networks map[string]string) error

func CreateContainerConfigMounts

func CreateContainerConfigMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)

func CreateContainerMounts

func CreateContainerMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)

func CreateContainerSecretMounts

func CreateContainerSecretMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)

func CreateVolume

func CreateVolume(cli *client.Client, project string, volumeDefaultName string, volumeConfig compose.VolumeConfig) error

func ExposedPorts

func ExposedPorts(ports []compose.ServicePortConfig) nat.PortSet

func GetConfigsFromConfig

func GetConfigsFromConfig(prjDir string, config *compose.Config) error

func GetNetworksFromConfig

func GetNetworksFromConfig(cli *client.Client, project string, config *compose.Config) (map[string]string, error)

func GetSecretsFromConfig

func GetSecretsFromConfig(prjDir string, config *compose.Config) error

func GetVolumesFromConfig

func GetVolumesFromConfig(cli *client.Client, project string, config *compose.Config) error

func NetworkMode

func NetworkMode(project string, serviceConfig compose.ServiceConfig, networks map[string]string) container.NetworkMode

func RemoveContainers

func RemoveContainers(cli *client.Client, containers []types.Container) error

func RemoveNetworks

func RemoveNetworks(cli *client.Client, project string) error

func RemoveVolumes

func RemoveVolumes(cli *client.Client, project string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL