migration

package
v1.4.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplianceDataIsOlder

func ApplianceDataIsOlder(conf map[string]string) (bool, error)

ApplianceDataIsOlder returns true if input appliance config is older than latest version. If error happens, always returns false

func ContainerDataIsOlder

func ContainerDataIsOlder(conf map[string]string) (bool, error)

ContainerDataIsOlder returns true if input container config is older than latest version. If error happens, always returns false

func ContainerDataVersion

func ContainerDataVersion(conf map[string]string) (int, error)

ContainerDataVersion returns container data version

func MigrateApplianceConfig

func MigrateApplianceConfig(ctx context.Context, s *session.Session, conf map[string]string) (map[string]string, bool, error)

MigrateApplianceConfigure migrate VCH appliance configuration, including guestinfo, keyvaluestore, or any other configuration related change.

Note: Input map conf is VCH appliance guestinfo map, and returned map is the new guestinfo. Returns false without error means no need to migrate, and returned map is the copy of input map If there is error returned, returns true and half-migrated value

func MigrateContainerConfig

func MigrateContainerConfig(conf map[string]string) (map[string]string, bool, error)

MigrateContainerConfigure migrate container configuration

Note: Migrated data will be returned in map, and input object is not changed. Returns false without error means no need to migrate, and returned map is the copy of input map If there is error returned, returns true and half-migrated value

Types

This section is empty.

Directories

Path Synopsis
plugin5
Package plugin5 Plugin to migrate urls from go1.7 to go1.8 Issue# https://github.com/vmware/vic/issues/4388
Package plugin5 Plugin to migrate urls from go1.7 to go1.8 Issue# https://github.com/vmware/vic/issues/4388
samples

Jump to

Keyboard shortcuts

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