v1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Definitions for the Kubernetes types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMutatingWebhookConfigurationClient added in v0.1.16

func NewMutatingWebhookConfigurationClient(client client.Client) *mutatingWebhookConfigurationClient

func NewValidatingWebhookConfigurationClient

func NewValidatingWebhookConfigurationClient(client client.Client) *validatingWebhookConfigurationClient

Types

type Clientset

type Clientset interface {
	// clienset for the admissionregistration.k8s.io/v1/v1 APIs
	ValidatingWebhookConfigurations() ValidatingWebhookConfigurationClient
	// clienset for the admissionregistration.k8s.io/v1/v1 APIs
	MutatingWebhookConfigurations() MutatingWebhookConfigurationClient
}

clienset for the admissionregistration.k8s.io/v1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

func NewClientsetFromConfig(cfg *rest.Config) (Clientset, error)

type MulticlusterClientset

type MulticlusterClientset interface {
	// Cluster returns a Clientset for the given cluster
	Cluster(cluster string) (Clientset, error)
}

MulticlusterClientset for the admissionregistration.k8s.io/v1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterMutatingWebhookConfigurationClient added in v0.1.16

type MulticlusterMutatingWebhookConfigurationClient interface {
	// Cluster returns a MutatingWebhookConfigurationClient for the given cluster
	Cluster(cluster string) (MutatingWebhookConfigurationClient, error)
}

Provides MutatingWebhookConfigurationClients for multiple clusters.

func NewMulticlusterMutatingWebhookConfigurationClient added in v0.1.16

func NewMulticlusterMutatingWebhookConfigurationClient(client multicluster.Client) MulticlusterMutatingWebhookConfigurationClient

type MulticlusterValidatingWebhookConfigurationClient

type MulticlusterValidatingWebhookConfigurationClient interface {
	// Cluster returns a ValidatingWebhookConfigurationClient for the given cluster
	Cluster(cluster string) (ValidatingWebhookConfigurationClient, error)
}

Provides ValidatingWebhookConfigurationClients for multiple clusters.

type MutatingWebhookConfigurationClient added in v0.1.16

Client knows how to perform CRUD operations on MutatingWebhookConfigurations.

type MutatingWebhookConfigurationReader added in v0.1.16

type MutatingWebhookConfigurationReader interface {
	// Get retrieves a MutatingWebhookConfiguration for the given object key
	GetMutatingWebhookConfiguration(ctx context.Context, key client.ObjectKey) (*admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, error)

	// List retrieves list of MutatingWebhookConfigurations for a given namespace and list options.
	ListMutatingWebhookConfiguration(ctx context.Context, opts ...client.ListOption) (*admissionregistration_k8s_io_v1.MutatingWebhookConfigurationList, error)
}

Reader knows how to read and list MutatingWebhookConfigurations.

type MutatingWebhookConfigurationSlice added in v0.1.16

type MutatingWebhookConfigurationSlice []*MutatingWebhookConfiguration

MutatingWebhookConfigurationSlice represents a slice of *MutatingWebhookConfiguration

type MutatingWebhookConfigurationStatusWriter added in v0.1.16

type MutatingWebhookConfigurationStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given MutatingWebhookConfiguration object.
	UpdateMutatingWebhookConfigurationStatus(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given MutatingWebhookConfiguration object's subresource.
	PatchMutatingWebhookConfigurationStatus(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a MutatingWebhookConfiguration object.

type MutatingWebhookConfigurationTransitionFunction added in v0.1.16

type MutatingWebhookConfigurationTransitionFunction func(existing, desired *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration) error

MutatingWebhookConfigurationTransitionFunction instructs the MutatingWebhookConfigurationWriter how to transition between an existing MutatingWebhookConfiguration object and a desired on an Upsert

type MutatingWebhookConfigurationWriter added in v0.1.16

type MutatingWebhookConfigurationWriter interface {
	// Create saves the MutatingWebhookConfiguration object.
	CreateMutatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, opts ...client.CreateOption) error

	// Delete deletes the MutatingWebhookConfiguration object.
	DeleteMutatingWebhookConfiguration(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given MutatingWebhookConfiguration object.
	UpdateMutatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, opts ...client.UpdateOption) error

	// Patch patches the given MutatingWebhookConfiguration object.
	PatchMutatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all MutatingWebhookConfiguration objects matching the given options.
	DeleteAllOfMutatingWebhookConfiguration(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the MutatingWebhookConfiguration object.
	UpsertMutatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.MutatingWebhookConfiguration, transitionFuncs ...MutatingWebhookConfigurationTransitionFunction) error
}

Writer knows how to create, delete, and update MutatingWebhookConfigurations.

type ValidatingWebhookConfigurationClient

Client knows how to perform CRUD operations on ValidatingWebhookConfigurations.

type ValidatingWebhookConfigurationReader

type ValidatingWebhookConfigurationReader interface {
	// Get retrieves a ValidatingWebhookConfiguration for the given object key
	GetValidatingWebhookConfiguration(ctx context.Context, key client.ObjectKey) (*admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, error)

	// List retrieves list of ValidatingWebhookConfigurations for a given namespace and list options.
	ListValidatingWebhookConfiguration(ctx context.Context, opts ...client.ListOption) (*admissionregistration_k8s_io_v1.ValidatingWebhookConfigurationList, error)
}

Reader knows how to read and list ValidatingWebhookConfigurations.

type ValidatingWebhookConfigurationSlice

type ValidatingWebhookConfigurationSlice []*ValidatingWebhookConfiguration

ValidatingWebhookConfigurationSlice represents a slice of *ValidatingWebhookConfiguration

type ValidatingWebhookConfigurationStatusWriter

type ValidatingWebhookConfigurationStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ValidatingWebhookConfiguration object.
	UpdateValidatingWebhookConfigurationStatus(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given ValidatingWebhookConfiguration object's subresource.
	PatchValidatingWebhookConfigurationStatus(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a ValidatingWebhookConfiguration object.

type ValidatingWebhookConfigurationTransitionFunction

type ValidatingWebhookConfigurationTransitionFunction func(existing, desired *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration) error

ValidatingWebhookConfigurationTransitionFunction instructs the ValidatingWebhookConfigurationWriter how to transition between an existing ValidatingWebhookConfiguration object and a desired on an Upsert

type ValidatingWebhookConfigurationWriter

type ValidatingWebhookConfigurationWriter interface {
	// Create saves the ValidatingWebhookConfiguration object.
	CreateValidatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, opts ...client.CreateOption) error

	// Delete deletes the ValidatingWebhookConfiguration object.
	DeleteValidatingWebhookConfiguration(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given ValidatingWebhookConfiguration object.
	UpdateValidatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, opts ...client.UpdateOption) error

	// Patch patches the given ValidatingWebhookConfiguration object.
	PatchValidatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all ValidatingWebhookConfiguration objects matching the given options.
	DeleteAllOfValidatingWebhookConfiguration(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the ValidatingWebhookConfiguration object.
	UpsertValidatingWebhookConfiguration(ctx context.Context, obj *admissionregistration_k8s_io_v1.ValidatingWebhookConfiguration, transitionFuncs ...ValidatingWebhookConfigurationTransitionFunction) error
}

Writer knows how to create, delete, and update ValidatingWebhookConfigurations.

Directories

Path Synopsis
Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers
mocks
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
mocks
Package mock_v1sets is a generated GoMock package.
Package mock_v1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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