v1alpha1

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 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 NewIstioOperatorClient

func NewIstioOperatorClient(client client.Client) *istioOperatorClient

Types

type Clientset

type Clientset interface {
	// clienset for the install.istio.io/v1alpha1/v1alpha1 APIs
	IstioOperators() IstioOperatorClient
}

clienset for the install.istio.io/v1alpha1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

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

type IstioOperatorClient

type IstioOperatorClient interface {
	IstioOperatorReader
	IstioOperatorWriter
	IstioOperatorStatusWriter
}

Client knows how to perform CRUD operations on IstioOperators.

type IstioOperatorReader

type IstioOperatorReader interface {
	// Get retrieves a IstioOperator for the given object key
	GetIstioOperator(ctx context.Context, key client.ObjectKey) (*install_istio_io_v1alpha1.IstioOperator, error)

	// List retrieves list of IstioOperators for a given namespace and list options.
	ListIstioOperator(ctx context.Context, opts ...client.ListOption) (*install_istio_io_v1alpha1.IstioOperatorList, error)
}

Reader knows how to read and list IstioOperators.

type IstioOperatorSlice

type IstioOperatorSlice []*IstioOperator

IstioOperatorSlice represents a slice of *IstioOperator

type IstioOperatorStatusWriter

type IstioOperatorStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given IstioOperator object.
	UpdateIstioOperatorStatus(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, opts ...client.UpdateOption) error

	// Patch patches the given IstioOperator object's subresource.
	PatchIstioOperatorStatus(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, patch client.Patch, opts ...client.PatchOption) error
}

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

type IstioOperatorTransitionFunction

type IstioOperatorTransitionFunction func(existing, desired *install_istio_io_v1alpha1.IstioOperator) error

IstioOperatorTransitionFunction instructs the IstioOperatorWriter how to transition between an existing IstioOperator object and a desired on an Upsert

type IstioOperatorWriter

type IstioOperatorWriter interface {
	// Create saves the IstioOperator object.
	CreateIstioOperator(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, opts ...client.CreateOption) error

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

	// Update updates the given IstioOperator object.
	UpdateIstioOperator(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, opts ...client.UpdateOption) error

	// Patch patches the given IstioOperator object.
	PatchIstioOperator(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the IstioOperator object.
	UpsertIstioOperator(ctx context.Context, obj *install_istio_io_v1alpha1.IstioOperator, transitionFuncs ...IstioOperatorTransitionFunction) error
}

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

type MulticlusterClientset

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

MulticlusterClientset for the install.istio.io/v1alpha1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterIstioOperatorClient

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

Provides IstioOperatorClients for multiple clusters.

func NewMulticlusterIstioOperatorClient

func NewMulticlusterIstioOperatorClient(client multicluster.Client) MulticlusterIstioOperatorClient

Directories

Path Synopsis
Definitions for the Kubernetes Controllers Definitions for the multicluster Kubernetes Controllers Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers Definitions for the multicluster 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