Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeProvider ¶
type KubeProvider struct {
// contains filtered or unexported fields
}
func NewKubeProvider ¶
func NewKubeProvider(kubeClient *client.Client) (*KubeProvider, error)
func (*KubeProvider) Lock ¶
func (kp *KubeProvider) Lock(lock Interface) (Interface, error)
Lock will acquire a lock by attempting to create a secret with name `name` in the given namespace. If a lock with the same name already exists, it'll check the locks expiry time and if it's less than the current time, will acquire the lock for itself
Click to show internal directories.
Click to hide internal directories.