strategy

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = NewRegistry()

Functions

This section is empty.

Types

type AdmissionWebhook

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

AdmissionWebhook is a admission webhook based on the registered strategies in the given registry

func NewAdmissionWebhook

func NewAdmissionWebhook(registry *StrategyRegistry) *AdmissionWebhook

type StrategyRegistry

type StrategyRegistry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

StrategyRegistry maintain the map of resource GVK to its CreateUpdateStrategy TODO: automate the registration of ValidatingAdmissionWebhook and MutatingAdmissionWebhook based on this registry

func NewRegistry

func NewRegistry() StrategyRegistry

func (*StrategyRegistry) Get

func (*StrategyRegistry) Register

func (r *StrategyRegistry) Register(strategy registry.CreateUpdateStrategy)

Jump to

Keyboard shortcuts

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