package
0.0.0-20240819180206-1aa1ecb48432
Repository: https://github.com/libopenstorage/cloudops.git
Documentation: pkg.go.dev
# Functions
GetSanitizedK8sName will sanitize the name conforming to RFC 1123 standards so that it's a "qualified name" per k8s.
GetStoreWithParams returns instance for Store kv: bootstrap kvdb schedulerType: node scheduler type e.g Kubernetes internalKvdb: If the cluster is configured to have internal kvdb name: Name for the store lockTryDuration: Total time to try acquiring the lock for lockHoldTimeout: Once a lock is acquired, if it's held beyond this time, there will be panic.
NewK8sStore returns a Store implementation which uses k8s configmaps to store data.
NewKVStore returns a Store implementation which is a wrapper over kvdb.
# Constants
Kubernetes identifies kubernetes as the scheduler.
# Variables
ErrKvdbNotInitialized is returned when kvdb is not initialized.
# Structs
KeyDoesNotExist is error type when the key does not exist.
KeyExists is error type when the key already exist in store.
Lock identifies a lock taken over CloudDrive store.
Params is the parameters to use for the Store object.
# Interfaces
Store provides a set of APIs to CloudDrive to store its metadata in a persistent store.