fake

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fake mocks a resource lock for testing purposes. Always returns leadership.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceLock

func NewResourceLock(config *rest.Config, recorderProvider recorder.Provider, options leaderelection.Options) (resourcelock.Interface, error)

NewResourceLock creates a new ResourceLock for use in testing leader election.

Types

type ResourceLock

type ResourceLock struct {
	// contains filtered or unexported fields
}

ResourceLock implements the ResourceLockInterface. By default returns that the current identity holds the lock.

func (*ResourceLock) Create

Create implements the ResourceLockInterface.

func (*ResourceLock) Describe

func (f *ResourceLock) Describe() string

Describe implements the ResourceLockInterface.

func (*ResourceLock) Get

Get implements the ResourceLockInterface.

func (*ResourceLock) Identity

func (f *ResourceLock) Identity() string

Identity implements the ResourceLockInterface.

func (*ResourceLock) RecordEvent

func (f *ResourceLock) RecordEvent(s string)

RecordEvent implements the ResourceLockInterface.

func (*ResourceLock) Update

Update implements the ResourceLockInterface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL