Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClientSet ¶
func CreateKubeClientSet(kubeconfig string) (*kubernetes.Clientset, error)
CreateKubeClientSet - Returns kubeclient set
func GetStats ¶
func GetStats(ctx context.Context, volumePath string) (int64, int64, int64, int64, int64, int64, error)
GetStats - Returns the stats for the volume mounted on given volume path
func LeaderElection ¶
func LeaderElection(clientset *kubernetes.Clientset, lockName string, namespace string, leaderElectionRenewDeadline, leaderElectionLeaseDuration, leaderElectionRetryPeriod time.Duration, runFunc func(ctx context.Context), )
LeaderElection - Initialize leader election
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.