v1alpha3

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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 NewTrafficSplitClient

func NewTrafficSplitClient(client client.Client) *trafficSplitClient

Types

type Clientset

type Clientset interface {
	// clienset for the split.smi-spec.io/v1alpha3/v1alpha3 APIs
	TrafficSplits() TrafficSplitClient
}

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

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterTrafficSplitClient

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

Provides TrafficSplitClients for multiple clusters.

func NewMulticlusterTrafficSplitClient

func NewMulticlusterTrafficSplitClient(client multicluster.Client) MulticlusterTrafficSplitClient

type TrafficSplitClient

type TrafficSplitClient interface {
	TrafficSplitReader
	TrafficSplitWriter
	TrafficSplitStatusWriter
}

Client knows how to perform CRUD operations on TrafficSplits.

type TrafficSplitReader

type TrafficSplitReader interface {
	// Get retrieves a TrafficSplit for the given object key
	GetTrafficSplit(ctx context.Context, key client.ObjectKey) (*split_smi_spec_io_v1alpha3.TrafficSplit, error)

	// List retrieves list of TrafficSplits for a given namespace and list options.
	ListTrafficSplit(ctx context.Context, opts ...client.ListOption) (*split_smi_spec_io_v1alpha3.TrafficSplitList, error)
}

Reader knows how to read and list TrafficSplits.

type TrafficSplitSlice

type TrafficSplitSlice []*TrafficSplit

TrafficSplitSlice represents a slice of *TrafficSplit

type TrafficSplitStatusWriter

type TrafficSplitStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given TrafficSplit object.
	UpdateTrafficSplitStatus(ctx context.Context, obj *split_smi_spec_io_v1alpha3.TrafficSplit, opts ...client.SubResourceUpdateOption) error

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

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

type TrafficSplitTransitionFunction

type TrafficSplitTransitionFunction func(existing, desired *split_smi_spec_io_v1alpha3.TrafficSplit) error

TrafficSplitTransitionFunction instructs the TrafficSplitWriter how to transition between an existing TrafficSplit object and a desired on an Upsert

type TrafficSplitWriter

type TrafficSplitWriter interface {
	// Create saves the TrafficSplit object.
	CreateTrafficSplit(ctx context.Context, obj *split_smi_spec_io_v1alpha3.TrafficSplit, opts ...client.CreateOption) error

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

	// Update updates the given TrafficSplit object.
	UpdateTrafficSplit(ctx context.Context, obj *split_smi_spec_io_v1alpha3.TrafficSplit, opts ...client.UpdateOption) error

	// Patch patches the given TrafficSplit object.
	PatchTrafficSplit(ctx context.Context, obj *split_smi_spec_io_v1alpha3.TrafficSplit, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the TrafficSplit object.
	UpsertTrafficSplit(ctx context.Context, obj *split_smi_spec_io_v1alpha3.TrafficSplit, transitionFuncs ...TrafficSplitTransitionFunction) error
}

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

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_v1alpha3 is a generated GoMock package.
Package mock_v1alpha3 is a generated GoMock package.
mocks
Package mock_v1alpha3sets is a generated GoMock package.
Package mock_v1alpha3sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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