Documentation ¶
Index ¶
Constants ¶
View Source
const ( // default namespace to install LockDefaultNamespace = "default" // name of kubernetes service holding the lock LockResourceName = "test-lock" // name of the annotation containing the lock LockAnnotationKey = "test.lock" // name of the annotation containing the timeout LockTimeoutAnnotationKey = "test.lock.timeout" // Default timeout for lock to be held DefaultLockTimeout = time.Second * 30 DefaultTimeFormat = time.RFC3339Nano // heartbeat settings DefaultHeartbeatTime = time.Second * 10 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type TestClusterLocker ¶
type TestClusterLocker struct {
// contains filtered or unexported fields
}
func NewTestClusterLocker ¶
func NewTestClusterLocker(clientset kubernetes.Interface, options Options) (*TestClusterLocker, error)
func (*TestClusterLocker) AcquireLock ¶
func (t *TestClusterLocker) AcquireLock(opts ...retry.Option) error
func (*TestClusterLocker) ReleaseLock ¶
func (t *TestClusterLocker) ReleaseLock() error
Click to show internal directories.
Click to hide internal directories.