common

package
v0.0.0-...-a58d3e8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 24 Imported by: 24

Documentation

Index

Constants

View Source
const BROADCAST_PORT = 9967
View Source
const UnikLogsPort = 9967

Variables

This section is empty.

Functions

func CompileInstanceListener

func CompileInstanceListener(sourceDir, instanceListenerPrefix, dockerImage string, createImageFunc func(kernel, args string, mntPoints, bakedEnv []string, noCleanup bool) (*types.RawImage, error), enablePersistence bool) (*types.RawImage, error)

func ConvertRawImage

func ConvertRawImage(sourceFormat, targetFormat types.ImageFormat, inputFile, outputFile string) error

func ConvertRawToNewVmdk

func ConvertRawToNewVmdk(inputFile, outputFile string) error

func GetControllerPortForMnt

func GetControllerPortForMnt(image *types.Image, mntPoint string) (int, error)

func GetDeviceNameForMnt

func GetDeviceNameForMnt(image *types.Image, mntPoint string) (string, error)

func GetImage

func GetImage(p providers.Provider, nameOrIdPrefix string) (*types.Image, error)

func GetInstance

func GetInstance(p providers.Provider, nameOrIdPrefix string) (*types.Instance, error)

func GetInstanceIp

func GetInstanceIp(listenerIp string, listenerPort int, instanceId string) (string, error)

func GetInstanceListenerIp

func GetInstanceListenerIp(dataPrefix string, timeout time.Duration) (string, error)

func GetInstanceLogs

func GetInstanceLogs(instance *types.Instance) (string, error)

func GetVirtualImageSize

func GetVirtualImageSize(imageFile string, imageFormat types.ImageFormat) (int64, error)

func GetVolume

func GetVolume(p providers.Provider, nameOrIdPrefix string) (*types.Volume, error)

func PullImage

func PullImage(config config.HubConfig, imageName string, writer io.Writer) (*types.Image, error)

func PushImage

func PushImage(config config.HubConfig, image *types.Image, imagePath string) error

func RemoteDeleteImage

func RemoteDeleteImage(config config.HubConfig, imageName string) error

func VerifyMntsInput

func VerifyMntsInput(p providers.Provider, image *types.Image, mntPointsToVolumeIds map[string]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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