replication

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the replication controller.
	Name = "shoot_dns_service_replication_controller"
)

Variables

View Source
var DefaultAddOptions = AddOptions{}

DefaultAddOptions contains configuration for the replication controller.

Functions

func AddToManager

func AddToManager(mgr manager.Manager) error

AddToManager adds a DNS Service replication controller to the given Controller Manager.

func ForService

func ForService(labelKey string) predicate.Predicate

ForService returns a predicate that matches the given name of a resource.

Types

type AddOptions added in v1.8.0

type AddOptions struct {
	// Controller contains options for the controller.
	Controller controller.Options
}

AddOptions are options to apply when adding the dns replication controller to the manager.

type StringsLock added in v1.13.0

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

StringsLock provides separate lock per given name with TryLock/Unlock semantics.

func NewStringsLock added in v1.13.0

func NewStringsLock() *StringsLock

NewStringsLock creates a new StringsLock object

func (*StringsLock) TryLock added in v1.13.0

func (this *StringsLock) TryLock(name string) bool

TryLock returns true if the name is successfully locked, i.e. not locked by another consumer. If true is returned, it must be unlocked with `Unlock`

func (*StringsLock) Unlock added in v1.13.0

func (this *StringsLock) Unlock(name string)

Unlock unlocks a name locked with `TryLock`

Jump to

Keyboard shortcuts

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