# Packages

Package mocks is a generated GoMock package.

# Functions

Contains will return true if the slice contains the given value.

# Variables

ConnectFn will connect the client to the k8s API.
InClusterConfigFn will return a valid configuration if we are running in a Pod on a kubernetes cluster.
NewConfigFn will return a valid kubernetes.Clientset.
NewForConfigFn creates a new Clientset for the given config.
NewLeaderElectorFn creates a LeaderElector from a LeaderElectionConfig.

# Structs

API holds data used to access the K8S API.
ClusterName contains Name, whether is default and associated drivernames.
LeaderElector holds LeaderElector struct for the client.
StorageClassFinder is a storage class finder that will query the Kubernetes API for storage classes provisioned by a matching DriverName and StorageSystemID.
VolumeFinder is a volume finder that will query the Kubernetes API for Persistent Volumes created by a matching DriverName and StorageSystemID.
VolumeInfo contains information about mapping a Persistent Volume to the volume created on a storage system.

# Interfaces

LeaderElectorGetter is an interface for initialize and check elected leader go:generate mockgen -destination=mocks/leader_elector_getter_mocks.go -package=mocks github.com/dell/csm-metrics-powerscale/internal/k8s LeaderElectorGetter.
StorageClassGetter is an interface for getting a list of storage class information go:generate mockgen -destination=mocks/storage_class_getter_mocks.go -package=mocks github.com/dell/csm-metrics-powerscale/internal/k8s StorageClassGetter.
VolumeGetter is an interface for getting a list of persistent volume information go:generate mockgen -destination=mocks/volume_getter_mocks.go -package=mocks github.com/dell/csm-metrics-powerscale/internal/k8s VolumeGetter.