plugin2

package
v1.5.2-dev Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

View Source
const (
	KVStoreFolder = "kvStores"
	APIKV         = "apiKV"
)

Sample plugin to migrate data in keyvalue store If there is any key/value change, should create a new keyvalue store file with version appendix, like .v2, to differentiate with old keyvalue store file Migrate keyvalue plugin should read configuration from input VirtualContainerHost configuration, and then read from old keyvalue store file directly After migration, write back to new datastore file with version appendix Data migration framework is not responsible for data roll back. With versioned datastore file, even roll back happens, old version's datastore file is still useable by old binary Make sure to delete existing new version datastore file, which might be a left over of last failed data migration attempt.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewImageMeta

type NewImageMeta struct {
}

NewImageMeta is plugin for vic 0.8.0-GA version upgrade

func (*NewImageMeta) Migrate

func (p *NewImageMeta) Migrate(ctx context.Context, s *session.Session, data interface{}) error

Jump to

Keyboard shortcuts

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