container

package
v0.0.0-...-84dfa8d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerTypeFromId

func ContainerTypeFromId(machineId string) instance.ContainerType

ContainerTypeFromId returns the container type if machineId is a container id, or "" if machineId is not for a container.

func NestingLevel

func NestingLevel(machineId string) int

NestingLevel returns how many levels of nesting exist for a machine id.

func ParentId

func ParentId(machineId string) string

ParentId returns the id of the host machine if machineId a container id, or "" if machineId is not for a container.

func TopParentId

func TopParentId(machineId string) string

TopParentId returns the id of the top level host machine for a container id.

Types

type Config

type Config struct {
	EnableOSRefreshUpdate      bool
	EnableOSUpgrade            bool
	ProviderType               string
	SSLHostnameVerification    bool
	LegacyProxy                proxy.Settings
	JujuProxy                  proxy.Settings
	AptProxy                   proxy.Settings
	SnapProxy                  proxy.Settings
	SnapStoreAssertions        string
	SnapStoreProxyID           string
	SnapStoreProxyURL          string
	AptMirror                  string
	CloudInitUserData          map[string]interface{}
	ContainerInheritProperties string
}

Config contains information from the model config that is needed for container cloud-init.

Jump to

Keyboard shortcuts

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