Documentation ¶
Overview ¶
Definitions for the Kubernetes types
Index ¶
- func NewTrafficSplitClient(client client.Client) *trafficSplitClient
- type Clientset
- type MulticlusterClientset
- type MulticlusterTrafficSplitClient
- type TrafficSplitClient
- type TrafficSplitReader
- type TrafficSplitSlice
- type TrafficSplitStatusWriter
- type TrafficSplitTransitionFunction
- type TrafficSplitWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTrafficSplitClient ¶
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 ¶
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. |