Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimManager ¶
type ClaimManager struct {
// contains filtered or unexported fields
}
func New ¶
func New( claimer client.Object, selector Selector, strategy ClaimStrategy, ) *ClaimManager
type ClaimState ¶
type ClaimState uint8
const ( ClaimStateInvalid ClaimState = iota ClaimStateFree ClaimStateClaimed ClaimStateTaken )
type ClaimStrategy ¶
type ClaimStrategyFuncs ¶
type ClaimStrategyFuncs struct { ClaimStateFunc func(claimer client.Object, obj client.Object) ClaimState AdoptFunc func(ctx context.Context, claimer client.Object, obj client.Object) error ReleaseFunc func(ctx context.Context, claimer client.Object, obj client.Object) error }
func (ClaimStrategyFuncs) ClaimState ¶
func (f ClaimStrategyFuncs) ClaimState(claimer client.Object, obj client.Object) ClaimState
type MatchingLabelSelector ¶
func MatchingLabels ¶
func MatchingLabels(lbls map[string]string) MatchingLabelSelector
type Selector ¶
func EverythingSelector ¶
func EverythingSelector() Selector
func NothingSelector ¶
func NothingSelector() Selector
Click to show internal directories.
Click to hide internal directories.