v1alpha1

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 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 NewWasmPluginClient

func NewWasmPluginClient(client client.Client) *wasmPluginClient

Types

type Clientset

type Clientset interface {
	// clienset for the extensions.istio.io/v1alpha1/v1alpha1 APIs
	WasmPlugins() WasmPluginClient
}

clienset for the extensions.istio.io/v1alpha1 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 extensions.istio.io/v1alpha1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterWasmPluginClient

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

Provides WasmPluginClients for multiple clusters.

func NewMulticlusterWasmPluginClient

func NewMulticlusterWasmPluginClient(client multicluster.Client) MulticlusterWasmPluginClient

type WasmPluginClient

type WasmPluginClient interface {
	WasmPluginReader
	WasmPluginWriter
	WasmPluginStatusWriter
}

Client knows how to perform CRUD operations on WasmPlugins.

type WasmPluginReader

type WasmPluginReader interface {
	// Get retrieves a WasmPlugin for the given object key
	GetWasmPlugin(ctx context.Context, key client.ObjectKey) (*extensions_istio_io_v1alpha1.WasmPlugin, error)

	// List retrieves list of WasmPlugins for a given namespace and list options.
	ListWasmPlugin(ctx context.Context, opts ...client.ListOption) (*extensions_istio_io_v1alpha1.WasmPluginList, error)
}

Reader knows how to read and list WasmPlugins.

type WasmPluginSlice

type WasmPluginSlice []*WasmPlugin

WasmPluginSlice represents a slice of *WasmPlugin

type WasmPluginStatusWriter

type WasmPluginStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given WasmPlugin object.
	UpdateWasmPluginStatus(ctx context.Context, obj *extensions_istio_io_v1alpha1.WasmPlugin, opts ...client.SubResourceUpdateOption) error

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

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

type WasmPluginTransitionFunction

type WasmPluginTransitionFunction func(existing, desired *extensions_istio_io_v1alpha1.WasmPlugin) error

WasmPluginTransitionFunction instructs the WasmPluginWriter how to transition between an existing WasmPlugin object and a desired on an Upsert

type WasmPluginWriter

type WasmPluginWriter interface {
	// Create saves the WasmPlugin object.
	CreateWasmPlugin(ctx context.Context, obj *extensions_istio_io_v1alpha1.WasmPlugin, opts ...client.CreateOption) error

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

	// Update updates the given WasmPlugin object.
	UpdateWasmPlugin(ctx context.Context, obj *extensions_istio_io_v1alpha1.WasmPlugin, opts ...client.UpdateOption) error

	// Patch patches the given WasmPlugin object.
	PatchWasmPlugin(ctx context.Context, obj *extensions_istio_io_v1alpha1.WasmPlugin, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the WasmPlugin object.
	UpsertWasmPlugin(ctx context.Context, obj *extensions_istio_io_v1alpha1.WasmPlugin, transitionFuncs ...WasmPluginTransitionFunction) error
}

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

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_v1alpha1 is a generated GoMock package.
Package mock_v1alpha1 is a generated GoMock package.
mocks
Package mock_v1alpha1sets is a generated GoMock package.
Package mock_v1alpha1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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