Documentation ¶
Index ¶
- Constants
- func BytesToGB(b float64) float64
- func ContainerGroupToContainer(containerID string, cg containerinstance.ContainerGroup, ...) containers.Container
- func ContainerGroupToServiceStatus(containerID string, group containerinstance.ContainerGroup, ...) compose.ServiceStatus
- func ContainerToComposeProject(r containers.ContainerConfig) (types.Project, error)
- func GetGroupStatus(group containerinstance.ContainerGroup) string
- 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 ToHostConfig(cc containerinstance.Container, cg containerinstance.ContainerGroup) *containers.HostConfig
- func ToPorts(ipAddr *containerinstance.IPAddress, ports []containerinstance.ContainerPort) []containers.Port
Constants ¶
const ( // StatusRunning name of the ACI running status StatusRunning = "Running" // 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, region string) containers.Container
ContainerGroupToContainer composes a Container from an ACI container definition
func ContainerGroupToServiceStatus ¶ added in v0.1.15
func ContainerGroupToServiceStatus(containerID string, group containerinstance.ContainerGroup, container containerinstance.Container, region string) compose.ServiceStatus
ContainerGroupToServiceStatus convert from an ACI container definition to service status
func ContainerToComposeProject ¶
func ContainerToComposeProject(r containers.ContainerConfig) (types.Project, error)
ContainerToComposeProject convert container config to compose project
func GetGroupStatus ¶ added in v0.1.23
func GetGroupStatus(group containerinstance.ContainerGroup) string
GetGroupStatus returns status for the container group
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, storageHelper login.StorageLogin) (containerinstance.ContainerGroup, error)
ToContainerGroup converts a compose project into a ACI container group
func ToHostConfig ¶ added in v0.1.23
func ToHostConfig(cc containerinstance.Container, cg containerinstance.ContainerGroup) *containers.HostConfig
ToHostConfig convert an ACI container to host config value
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.