convert

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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

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

ToPorts converts Azure container ports to api ports

Types

This section is empty.

Jump to

Keyboard shortcuts

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