Documentation ¶
Index ¶
- func ApplianceDataIsOlder(conf map[string]string) (bool, error)
- func ContainerDataIsOlder(conf map[string]string) (bool, error)
- func ContainerDataVersion(conf map[string]string) (int, error)
- func MigrateApplianceConfig(ctx context.Context, s *session.Session, conf map[string]string) (map[string]string, bool, error)
- func MigrateContainerConfig(conf map[string]string) (map[string]string, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplianceDataIsOlder ¶
ApplianceDataIsOlder returns true if input appliance config is older than latest version. If error happens, always returns false
func ContainerDataIsOlder ¶
ContainerDataIsOlder returns true if input container config is older than latest version. If error happens, always returns false
func ContainerDataVersion ¶
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 ¶
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.