vconvert

package
v0.0.0-...-79a645e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerConverter

type ContainerConverter struct {
	// contains filtered or unexported fields
}

ContainerConverter is the base object. Create a client with NewContainerConverter.

func NewContainerConverter

func NewContainerConverter(app, config string, log elog.View) (*ContainerConverter, error)

NewContainerConverter returns a ContainerConverter for the given image It parses and validates the application name., Logger elog.View

func (*ContainerConverter) ConvertToProject

func (cc *ContainerConverter) ConvertToProject(dst, user, pwd string) error

ConvertToProject exports a container image as a vorteil.io VM into the dst directory

func (*ContainerConverter) RegistryName

func (cc *ContainerConverter) RegistryName() string

RegistryName returns the name of the image registry Returns empty string for local registries

func (*ContainerConverter) RegistryType

func (cc *ContainerConverter) RegistryType() RegistryType

RegistryType returns the type of registry: local, remote or none

type RegistryType

type RegistryType string

RegistryType defines if it is a image repository server or a local container runtime instance

var (
	DockerRegistry     RegistryType = "docker"
	ContainerdRegistry RegistryType = "containerd"
	RemoteRegistry     RegistryType = "remote"
	NullRegistry       RegistryType = ""
)

RegistryType values where local is e.g. docker and remote docker hub

Jump to

Keyboard shortcuts

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