Documentation ¶
Index ¶
- Constants
- func BuildContainerPortBindingsOptions(serviceConfig compose.ServiceConfig) nat.PortMap
- func BuildDefaultNetworkConfig(serviceConfig compose.ServiceConfig, networkMode container.NetworkMode) *network.NetworkingConfig
- func CollectContainers(cli *client.Client, project string) (map[string][]types.Container, error)
- func ConnectContainerToNetworks(context context.Context, cli *client.Client, ...) error
- func CreateContainerConfigMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)
- func CreateContainerMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)
- func CreateContainerSecretMounts(s compose.ServiceConfig, prjDir string) ([]mount.Mount, error)
- func CreateVolume(cli *client.Client, project string, volumeDefaultName string, ...) error
- func ExposedPorts(ports []compose.ServicePortConfig) nat.PortSet
- func GetConfigsFromConfig(prjDir string, config *compose.Config) error
- func GetNetworksFromConfig(cli *client.Client, project string, config *compose.Config) (map[string]string, error)
- func GetSecretsFromConfig(prjDir string, config *compose.Config) error
- func GetVolumesFromConfig(cli *client.Client, project string, config *compose.Config) error
- func NetworkMode(project string, serviceConfig compose.ServiceConfig, ...) container.NetworkMode
- func RemoveContainers(cli *client.Client, containers []types.Container) error
- func RemoveNetworks(cli *client.Client, project string) error
- func RemoveVolumes(cli *client.Client, project string) error
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 CreateContainerMounts ¶
func CreateVolume ¶
func ExposedPorts ¶
func ExposedPorts(ports []compose.ServicePortConfig) nat.PortSet
func GetNetworksFromConfig ¶
func GetVolumesFromConfig ¶
func NetworkMode ¶
func NetworkMode(project string, serviceConfig compose.ServiceConfig, networks map[string]string) container.NetworkMode
func RemoveContainers ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.