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
Click to show internal directories.
Click to hide internal directories.