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 ¶
AddToManager adds a DNS Service replication controller to the given Controller Manager.
func ForService ¶
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`
Click to show internal directories.
Click to hide internal directories.