convert

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusRunning name of the ACI running status
	StatusRunning = "Running"
	// ComposeDNSSidecarName name of the dns sidecar container
	ComposeDNSSidecarName = "aci--dns--sidecar"
)
View Source
const (
	// AzureFileDriverName driver name for azure file share
	AzureFileDriverName = "azure_file"
	// VolumeDriveroptsShareNameKey driver opt for fileshare name
	VolumeDriveroptsShareNameKey = "share_name"
	// VolumeDriveroptsAccountNameKey driver opt for storage account
	VolumeDriveroptsAccountNameKey = "storage_account_name"
)

Variables

This section is empty.

Functions

func BytesToGB added in v0.1.23

func BytesToGB(b float64) float64

BytesToGB convert bytes To GB

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) api.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 FQDN added in v1.0.5

func FQDN(group containerinstance.ContainerGroup, region string) string

FQDN retrieve the fully qualified domain name for a ContainerGroup

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

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

ToHostConfig convert an ACI container to host config value

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