kubernetes/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors.go

type WebhookAccessor

// NewMutatingWebhookAccessor creates an accessor for a MutatingWebhook.
func NewMutatingWebhookAccessor(uid, configurationName string, h *v1.MutatingWebhook) WebhookAccessor {}

type mutatingWebhookAccessor

func (m *mutatingWebhookAccessor) GetUID() string {}

func (m *mutatingWebhookAccessor) GetConfigurationName() string {}

func (m *mutatingWebhookAccessor) GetRESTClient(clientManager *webhookutil.ClientManager) (*rest.RESTClient, error) {}

func (m *mutatingWebhookAccessor) GetType() string {}

func (m *mutatingWebhookAccessor) GetCompiledMatcher(compiler cel.FilterCompiler) matchconditions.Matcher {}

func (m *mutatingWebhookAccessor) GetParsedNamespaceSelector() (labels.Selector, error) {}

func (m *mutatingWebhookAccessor) GetParsedObjectSelector() (labels.Selector, error) {}

func (m *mutatingWebhookAccessor) GetName() string {}

func (m *mutatingWebhookAccessor) GetClientConfig() v1.WebhookClientConfig {}

func (m *mutatingWebhookAccessor) GetRules() []v1.RuleWithOperations {}

func (m *mutatingWebhookAccessor) GetFailurePolicy() *v1.FailurePolicyType {}

func (m *mutatingWebhookAccessor) GetMatchPolicy() *v1.MatchPolicyType {}

func (m *mutatingWebhookAccessor) GetNamespaceSelector() *metav1.LabelSelector {}

func (m *mutatingWebhookAccessor) GetObjectSelector() *metav1.LabelSelector {}

func (m *mutatingWebhookAccessor) GetSideEffects() *v1.SideEffectClass {}

func (m *mutatingWebhookAccessor) GetTimeoutSeconds() *int32 {}

func (m *mutatingWebhookAccessor) GetAdmissionReviewVersions() []string {}

func (m *mutatingWebhookAccessor) GetMatchConditions() []v1.MatchCondition {}

func (m *mutatingWebhookAccessor) GetMutatingWebhook() (*v1.MutatingWebhook, bool) {}

func (m *mutatingWebhookAccessor) GetValidatingWebhook() (*v1.ValidatingWebhook, bool) {}

// NewValidatingWebhookAccessor creates an accessor for a ValidatingWebhook.
func NewValidatingWebhookAccessor(uid, configurationName string, h *v1.ValidatingWebhook) WebhookAccessor {}

type validatingWebhookAccessor

func (v *validatingWebhookAccessor) GetUID() string {}

func (v *validatingWebhookAccessor) GetConfigurationName() string {}

func (v *validatingWebhookAccessor) GetRESTClient(clientManager *webhookutil.ClientManager) (*rest.RESTClient, error) {}

func (v *validatingWebhookAccessor) GetCompiledMatcher(compiler cel.FilterCompiler) matchconditions.Matcher {}

func (v *validatingWebhookAccessor) GetParsedNamespaceSelector() (labels.Selector, error) {}

func (v *validatingWebhookAccessor) GetParsedObjectSelector() (labels.Selector, error) {}

func (m *validatingWebhookAccessor) GetType() string {}

func (v *validatingWebhookAccessor) GetName() string {}

func (v *validatingWebhookAccessor) GetClientConfig() v1.WebhookClientConfig {}

func (v *validatingWebhookAccessor) GetRules() []v1.RuleWithOperations {}

func (v *validatingWebhookAccessor) GetFailurePolicy() *v1.FailurePolicyType {}

func (v *validatingWebhookAccessor) GetMatchPolicy() *v1.MatchPolicyType {}

func (v *validatingWebhookAccessor) GetNamespaceSelector() *metav1.LabelSelector {}

func (v *validatingWebhookAccessor) GetObjectSelector() *metav1.LabelSelector {}

func (v *validatingWebhookAccessor) GetSideEffects() *v1.SideEffectClass {}

func (v *validatingWebhookAccessor) GetTimeoutSeconds() *int32 {}

func (v *validatingWebhookAccessor) GetAdmissionReviewVersions() []string {}

func (v *validatingWebhookAccessor) GetMatchConditions() []v1.MatchCondition {}

func (v *validatingWebhookAccessor) GetMutatingWebhook() (*v1.MutatingWebhook, bool) {}

func (v *validatingWebhookAccessor) GetValidatingWebhook() (*v1.ValidatingWebhook, bool) {}

// hookClientConfigForWebhook construct a webhookutil.ClientConfig using a WebhookAccessor to access
// v1beta1.MutatingWebhook and v1beta1.ValidatingWebhook API objects.  webhookutil.ClientConfig is used
// to create a HookClient and the purpose of the config struct is to share that with other packages
// that need to create a HookClient.
func hookClientConfigForWebhook(w WebhookAccessor) webhookutil.ClientConfig {}