Documentation ¶
Overview ¶
Definitions for the Kubernetes types
Index ¶
- func NewServiceProfileClient(client client.Client) *serviceProfileClient
- type Clientset
- type MulticlusterClientset
- type MulticlusterServiceProfileClient
- type ServiceProfileClient
- type ServiceProfileReader
- type ServiceProfileSlice
- type ServiceProfileStatusWriter
- type ServiceProfileTransitionFunction
- type ServiceProfileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceProfileClient ¶
Types ¶
type Clientset ¶
type Clientset interface { // clienset for the linkerd.io/v1alpha2/v1alpha2 APIs ServiceProfiles() ServiceProfileClient }
clienset for the linkerd.io/v1alpha2 APIs
func NewClientset ¶
type MulticlusterClientset ¶
type MulticlusterClientset interface { // Cluster returns a Clientset for the given cluster Cluster(cluster string) (Clientset, error) }
MulticlusterClientset for the linkerd.io/v1alpha2 APIs
func NewMulticlusterClientset ¶
func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset
type MulticlusterServiceProfileClient ¶
type MulticlusterServiceProfileClient interface { // Cluster returns a ServiceProfileClient for the given cluster Cluster(cluster string) (ServiceProfileClient, error) }
Provides ServiceProfileClients for multiple clusters.
func NewMulticlusterServiceProfileClient ¶
func NewMulticlusterServiceProfileClient(client multicluster.Client) MulticlusterServiceProfileClient
type ServiceProfileClient ¶
type ServiceProfileClient interface { ServiceProfileReader ServiceProfileWriter ServiceProfileStatusWriter }
Client knows how to perform CRUD operations on ServiceProfiles.
type ServiceProfileReader ¶
type ServiceProfileReader interface { // Get retrieves a ServiceProfile for the given object key GetServiceProfile(ctx context.Context, key client.ObjectKey) (*linkerd_io_v1alpha2.ServiceProfile, error) // List retrieves list of ServiceProfiles for a given namespace and list options. ListServiceProfile(ctx context.Context, opts ...client.ListOption) (*linkerd_io_v1alpha2.ServiceProfileList, error) }
Reader knows how to read and list ServiceProfiles.
type ServiceProfileSlice ¶
type ServiceProfileSlice []*ServiceProfile
ServiceProfileSlice represents a slice of *ServiceProfile
type ServiceProfileStatusWriter ¶
type ServiceProfileStatusWriter interface { // Update updates the fields corresponding to the status subresource for the // given ServiceProfile object. UpdateServiceProfileStatus(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, opts ...client.UpdateOption) error // Patch patches the given ServiceProfile object's subresource. PatchServiceProfileStatus(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, patch client.Patch, opts ...client.PatchOption) error }
StatusWriter knows how to update status subresource of a ServiceProfile object.
type ServiceProfileTransitionFunction ¶
type ServiceProfileTransitionFunction func(existing, desired *linkerd_io_v1alpha2.ServiceProfile) error
ServiceProfileTransitionFunction instructs the ServiceProfileWriter how to transition between an existing ServiceProfile object and a desired on an Upsert
type ServiceProfileWriter ¶
type ServiceProfileWriter interface { // Create saves the ServiceProfile object. CreateServiceProfile(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, opts ...client.CreateOption) error // Delete deletes the ServiceProfile object. DeleteServiceProfile(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error // Update updates the given ServiceProfile object. UpdateServiceProfile(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, opts ...client.UpdateOption) error // Patch patches the given ServiceProfile object. PatchServiceProfile(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, patch client.Patch, opts ...client.PatchOption) error // DeleteAllOf deletes all ServiceProfile objects matching the given options. DeleteAllOfServiceProfile(ctx context.Context, opts ...client.DeleteAllOfOption) error // Create or Update the ServiceProfile object. UpsertServiceProfile(ctx context.Context, obj *linkerd_io_v1alpha2.ServiceProfile, transitionFuncs ...ServiceProfileTransitionFunction) error }
Writer knows how to create, delete, and update ServiceProfiles.
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. |