package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
MustParseEtcdStorageVersion parses an etcd storage version string to an EtcdStorageVersion and panics if the parse fails.
MustParseEtcdVersion parses a SemVer string to an EtcdVersion and panics if the parse fails.
NewEtcdMigrateClient creates a new EtcdMigrateClient from the given EtcdMigrateCfg.
NewEtcdMigrateServer creates a EtcdMigrateServer for starting and stopping a etcd server at the given version.
OpenOrCreateDataDirectory opens a data directory, creating the directory if it doesn't not already exist.
ParseEtcdStorageVersion parses an etcd storage version string to an EtcdStorageVersion.
ParseEtcdVersion parses a SemVer string to an EtcdVersion.
ParseEtcdVersionPair parses a "<version>/<storage-version>" string to an EtcdVersionPair.
ParseSupportedVersions parses a list of etcd versions.
# Structs
CombinedEtcdClient provides an implementation of EtcdMigrateClient using a combination of the etcd v2 client, v3 client and etcdctl commands called via the shell.
DataDirectory provides utilities for initializing and backing up an etcd "data-dir" as well as managing a version.txt file to track the etcd server version and storage version of the etcd data in the directory.
EtcdMigrateCfg provides all configuration required to perform etcd data upgrade/downgrade migrations.
EtcdMigrateServer manages starting and stopping a versioned etcd server binary.
EtcdVersion specifies an etcd server binaries SemVer.
EtcdVersionPair is composed of an etcd version and storage version.
Migrator manages etcd data migrations.
VersionFile provides utilities for reading and writing version.txt files to etcd "data-dir" for tracking the etcd server and storage versions of the data in the directory.
# Interfaces
EtcdMigrateClient defines the etcd client operations required to perform migrations.
# Type aliases
EtcdStorageVersion identifies the storage version of an etcd data directory.
SupportedVersions provides a list of etcd versions that are "supported" for some purpose.