v1alpha2

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 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 NewTrafficTargetClient

func NewTrafficTargetClient(client client.Client) *trafficTargetClient

Types

type Clientset

type Clientset interface {
	// clienset for the access.smi-spec.io/v1alpha2/v1alpha2 APIs
	TrafficTargets() TrafficTargetClient
}

clienset for the access.smi-spec.io/v1alpha2 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 access.smi-spec.io/v1alpha2 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterTrafficTargetClient

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

Provides TrafficTargetClients for multiple clusters.

func NewMulticlusterTrafficTargetClient

func NewMulticlusterTrafficTargetClient(client multicluster.Client) MulticlusterTrafficTargetClient

type TrafficTargetClient

type TrafficTargetClient interface {
	TrafficTargetReader
	TrafficTargetWriter
	TrafficTargetStatusWriter
}

Client knows how to perform CRUD operations on TrafficTargets.

type TrafficTargetReader

type TrafficTargetReader interface {
	// Get retrieves a TrafficTarget for the given object key
	GetTrafficTarget(ctx context.Context, key client.ObjectKey) (*access_smi_spec_io_v1alpha2.TrafficTarget, error)

	// List retrieves list of TrafficTargets for a given namespace and list options.
	ListTrafficTarget(ctx context.Context, opts ...client.ListOption) (*access_smi_spec_io_v1alpha2.TrafficTargetList, error)
}

Reader knows how to read and list TrafficTargets.

type TrafficTargetSlice

type TrafficTargetSlice []*TrafficTarget

TrafficTargetSlice represents a slice of *TrafficTarget

type TrafficTargetStatusWriter

type TrafficTargetStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given TrafficTarget object.
	UpdateTrafficTargetStatus(ctx context.Context, obj *access_smi_spec_io_v1alpha2.TrafficTarget, opts ...client.UpdateOption) error

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

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

type TrafficTargetTransitionFunction

type TrafficTargetTransitionFunction func(existing, desired *access_smi_spec_io_v1alpha2.TrafficTarget) error

TrafficTargetTransitionFunction instructs the TrafficTargetWriter how to transition between an existing TrafficTarget object and a desired on an Upsert

type TrafficTargetWriter

type TrafficTargetWriter interface {
	// Create saves the TrafficTarget object.
	CreateTrafficTarget(ctx context.Context, obj *access_smi_spec_io_v1alpha2.TrafficTarget, opts ...client.CreateOption) error

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

	// Update updates the given TrafficTarget object.
	UpdateTrafficTarget(ctx context.Context, obj *access_smi_spec_io_v1alpha2.TrafficTarget, opts ...client.UpdateOption) error

	// Patch patches the given TrafficTarget object.
	PatchTrafficTarget(ctx context.Context, obj *access_smi_spec_io_v1alpha2.TrafficTarget, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the TrafficTarget object.
	UpsertTrafficTarget(ctx context.Context, obj *access_smi_spec_io_v1alpha2.TrafficTarget, transitionFuncs ...TrafficTargetTransitionFunction) error
}

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

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_v1alpha2 is a generated GoMock package.
Package mock_v1alpha2 is a generated GoMock package.
mocks
Package mock_v1alpha2sets is a generated GoMock package.
Package mock_v1alpha2sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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