Versions in this module Expand all Collapse all v0 v0.2.0 Jun 15, 2020 Changes in this version + const CLUSTER_MAIN + const CONVERTING + const MUTATING + const TYPE + const VALIDATING + const WEBHOOK_SET_PREFIX + func NewWebhook(ext *Extension, def Definition, cluster cluster.Interface) (*webhook, error) + func OptionSourceCreator(proto config.OptionSource) extension.OptionSourceCreator + func Register(reg Registerable, group ...string) error + func RegisterKindHandlerProvider(kind WebhookKind, p WebhookKindHandlerProvider) + func RegisterRegistrationHandler(r RegistrationHandler) + type Configuration struct + func Configure(name string) Configuration + func (this Configuration) ActivateExplicitly() Configuration + func (this Configuration) BoolOption(name string, desc string) Configuration + func (this Configuration) Cluster(name string) Configuration + func (this Configuration) DefaultedBoolOption(name string, def bool, desc string) Configuration + func (this Configuration) DefaultedDurationOption(name string, def time.Duration, desc string) Configuration + func (this Configuration) DefaultedIntOption(name string, def int, desc string) Configuration + func (this Configuration) DefaultedStringArrayOption(name string, def []string, desc string) Configuration + func (this Configuration) DefaultedStringOption(name, def string, desc string) Configuration + func (this Configuration) Definition() Definition + func (this Configuration) DurationOption(name string, desc string) Configuration + func (this Configuration) IntOption(name string, desc string) Configuration + func (this Configuration) Kind(factory HandlerFactory) Configuration + func (this Configuration) MustRegister() Configuration + func (this Configuration) MustRegisterAt(registry RegistrationInterface) Configuration + func (this Configuration) Name(name string) Configuration + func (this Configuration) OptionSource(name string, creator extension.OptionSourceCreator) Configuration + func (this Configuration) OptionsByExample(name string, proto config.OptionSource) Configuration + func (this Configuration) Register() error + func (this Configuration) RegisterAt(registry RegistrationInterface) error + func (this Configuration) Resource(group, kind string) Configuration + func (this Configuration) Restore() Configuration + func (this Configuration) Scheme(scheme *runtime.Scheme) Configuration + func (this Configuration) StringArrayOption(name string, desc string) Configuration + func (this Configuration) StringOption(name string, desc string) Configuration + func (this Configuration) With(modifier ...ConfigurationModifier) Configuration + type ConfigurationModifier func(c Configuration) Configuration + type Definition interface + ActivateExplicitly func() bool + Cluster func() string + ConfigOptionSources func() extension.OptionSourceDefinitions + ConfigOptions func() map[string]OptionDefinition + Definition func() Definition + Handler func() WebhookHandler + Kind func() WebhookKind + Name func() string + Resources func() []extension.ResourceKey + Scheme func() *runtime.Scheme + type Definitions interface + ExtendConfig func(cfg *areacfg.Config) + Get func(name string) Definition + Groups func() groups.Definitions + Names func() utils.StringSet + Registrations func(names ...string) (Registrations, error) + Size func() int + func DefaultDefinitions() Definitions + type Environment interface + CreateWebhookClientConfig func(msg string, def Definition, target resources.Cluster) (apiextensions.WebhookClientConfigSource, error) + DeleteWebhook func(def Definition, target cluster.Interface) error + DeleteWebhookByName func(name string, target cluster.Interface) error + GetConfig func() *areacfg.Config + RegisterWebhook func(def Definition, target cluster.Interface, ...) error + RegisterWebhookByName func(name string, target cluster.Interface, ...) error + RegisterWebhookGroup func(name string, target cluster.Interface, ...) error + type Extension struct + func NewExtension(defs Definitions, cm extension.ControllerManager) (*Extension, error) + func (this *Extension) CreateWebhookClientConfig(msg string, def Definition, target resources.Cluster) (apiextensions.WebhookClientConfigSource, error) + func (this *Extension) DeleteWebhook(def Definition, target cluster.Interface) error + func (this *Extension) DeleteWebhookByName(name string, target cluster.Interface) error + func (this *Extension) DeleteWebhookGroup(name string, target cluster.Interface) error + func (this *Extension) GetConfig() *areacfg.Config + func (this *Extension) Maintainer() string + func (this *Extension) RegisterHandler(wh Interface) error + func (this *Extension) RegisterWebhook(def Definition, target cluster.Interface, ...) error + func (this *Extension) RegisterWebhookByName(name string, target cluster.Interface, ...) error + func (this *Extension) RegisterWebhookGroup(name string, target cluster.Interface, ...) error + func (this *Extension) RegistrationGroupName(name string) string + func (this *Extension) RequiredClusters() (utils.StringSet, error) + func (this *Extension) Setup(ctx context.Context) error + func (this *Extension) Start(ctx context.Context) error + type ExtensionDefinition struct + func NewExtensionDefinition(defs Definitions) *ExtensionDefinition + func (this *ExtensionDefinition) CreateExtension(cm extension.ControllerManager) (extension.Extension, error) + func (this *ExtensionDefinition) Description() string + func (this *ExtensionDefinition) ExtendConfig(cfg *parentcfg.Config) + func (this *ExtensionDefinition) Names() utils.StringSet + func (this *ExtensionDefinition) Size() int + func (this *ExtensionDefinition) Validate() error + type ExtensionType struct + func NewExtensionType() *ExtensionType + func (this *ExtensionType) Definition() extension.Definition + func (this *ExtensionType) Name() string + type HandlerFactory interface + CreateHandler func() WebhookHandler + type Interface interface + GetCluster func() cluster.Interface + GetDefinition func() Definition + GetEnvironment func() Environment + GetKind func() WebhookKind + GetKindConfig func() config.OptionSource + GetScheme func() *runtime.Scheme + func GetWebhook(ctx context.Context) Interface + type MaintainedRegistration struct + type MaintainedRegistrations struct + func (this *MaintainedRegistrations) TriggerRegistrationUpdate(ext *Extension) + type OptionDefinition extension.OptionDefinition + type Registerable interface + Definition func() Definition + type RegistrationContext interface + Config func() config.OptionSource + Maintainer func() string + type RegistrationHandler interface + CreateDeclarations func(log logger.LogContext, def Definition, target cluster.Interface, ...) (WebhookDeclarations, error) + Delete func(log logger.LogContext, name string, def Definition, cluster cluster.Interface) error + Kind func() WebhookKind + OptionSourceCreator func() extension.OptionSourceCreator + Register func(ctx RegistrationContext, labels map[string]string, cluster cluster.Interface, ...) error + RegistrationNames func(def Definition) []string + RegistrationResource func() runtime.Object + RequireDedicatedRegistrations func() bool + func GetRegistrationHandler(kind WebhookKind) RegistrationHandler + type RegistrationHandlerBase struct + func NewRegistrationHandlerBase(kind WebhookKind, obj runtime.Object) *RegistrationHandlerBase + func (this *RegistrationHandlerBase) Kind() WebhookKind + func (this *RegistrationHandlerBase) OptionSourceCreator() extension.OptionSourceCreator + func (this *RegistrationHandlerBase) RegistrationNames(def Definition) []string + func (this *RegistrationHandlerBase) RegistrationResource() runtime.Object + func (this *RegistrationHandlerBase) RequireDedicatedRegistrations() bool + type RegistrationInterface interface + MustRegister func(reg Registerable, group ...string) RegistrationInterface + Register func(reg Registerable, group ...string) error + func MustRegister(reg Registerable, group ...string) RegistrationInterface + type RegistrationResources map[WebhookKind]runtime.Object + func GetRegistrationResources() RegistrationResources + type Registrations map[string]Definition + func (this Registrations) Copy() Registrations + func (this Registrations) Names() utils.StringSet + type Registry interface + GetDefinitions func() Definitions + func DefaultRegistry() Registry + func NewRegistry() Registry + type ValidatorFunc func(Interface) error + func (this ValidatorFunc) Validate(wh Interface) error + type WebhookConfig struct + func NewWebhookConfig(name string) *WebhookConfig + type WebhookDeclaration interface + Kind func() WebhookKind + type WebhookDeclarations []WebhookDeclaration + type WebhookHandler interface + GetHTTPHandler func(wh Interface) (http.Handler, error) + GetKind func() WebhookKind + String func() string + type WebhookKind string + type WebhookKindHandler interface + Register func(Interface) error + type WebhookKindHandlerProvider func(Environment, WebhookKind) (WebhookKindHandler, error) + type WebhookRegistrationGroup struct + func NewWebhookRegistrationGroup(cluster cluster.Interface) *WebhookRegistrationGroup + func (this *WebhookRegistrationGroup) AddDeclarations(decls ...WebhookDeclaration) + func (this *WebhookRegistrationGroup) AddRegistrations(kind WebhookKind, names ...string) + type WebhookRegistrationGroups map[string]*WebhookRegistrationGroup + func (this WebhookRegistrationGroups) GetOrCreateGroup(cluster cluster.Interface) *WebhookRegistrationGroup + type WebhookValidator interface + Validate func(Interface) error