Documentation ¶
Index ¶
- Constants
- func ContainerGroupToContainer(containerID string, cg containerinstance.ContainerGroup, ...) containers.Container
- func ContainerToComposeProject(r containers.ContainerConfig) (types.Project, error)
- func GetRunVolumes(volumes []string) (map[string]types.VolumeConfig, []types.ServiceVolumeConfig, error)
- func GetStatus(container containerinstance.Container, group containerinstance.ContainerGroup) string
- func ToContainerGroup(ctx context.Context, aciContext store.AciContext, p types.Project) (containerinstance.ContainerGroup, error)
- func ToPorts(ipAddr *containerinstance.IPAddress, ports []containerinstance.ContainerPort) []containers.Port
Constants ¶
View Source
const (
// ComposeDNSSidecarName name of the dns sidecar container
ComposeDNSSidecarName = "aci--dns--sidecar"
)
Variables ¶
This section is empty.
Functions ¶
func ContainerGroupToContainer ¶
func ContainerGroupToContainer(containerID string, cg containerinstance.ContainerGroup, cc containerinstance.Container) containers.Container
ContainerGroupToContainer composes a Container from an ACI container definition
func ContainerToComposeProject ¶
func ContainerToComposeProject(r containers.ContainerConfig) (types.Project, error)
ContainerToComposeProject convert container config to compose project
func GetRunVolumes ¶
func GetRunVolumes(volumes []string) (map[string]types.VolumeConfig, []types.ServiceVolumeConfig, error)
GetRunVolumes return volume configurations for a project and a single service this is meant to be used as a compose project of a single service
func GetStatus ¶
func GetStatus(container containerinstance.Container, group containerinstance.ContainerGroup) string
GetStatus returns status for the specified container
func ToContainerGroup ¶
func ToContainerGroup(ctx context.Context, aciContext store.AciContext, p types.Project) (containerinstance.ContainerGroup, error)
ToContainerGroup converts a compose project into a ACI container group
func ToPorts ¶
func ToPorts(ipAddr *containerinstance.IPAddress, ports []containerinstance.ContainerPort) []containers.Port
ToPorts converts Azure container ports to api ports
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.