v1beta1

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 NewDestinationRuleClient

func NewDestinationRuleClient(client client.Client) *destinationRuleClient

func NewGatewayClient

func NewGatewayClient(client client.Client) *gatewayClient

func NewProxyConfigClient added in v0.2.7

func NewProxyConfigClient(client client.Client) *proxyConfigClient

func NewServiceEntryClient

func NewServiceEntryClient(client client.Client) *serviceEntryClient

func NewSidecarClient

func NewSidecarClient(client client.Client) *sidecarClient

func NewVirtualServiceClient

func NewVirtualServiceClient(client client.Client) *virtualServiceClient

func NewWorkloadEntryClient

func NewWorkloadEntryClient(client client.Client) *workloadEntryClient

func NewWorkloadGroupClient added in v0.1.18

func NewWorkloadGroupClient(client client.Client) *workloadGroupClient

Types

type Clientset

type Clientset interface {
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	DestinationRules() DestinationRuleClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	Gateways() GatewayClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	ProxyConfigs() ProxyConfigClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	ServiceEntries() ServiceEntryClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	WorkloadEntries() WorkloadEntryClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	WorkloadGroups() WorkloadGroupClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	VirtualServices() VirtualServiceClient
	// clienset for the networking.istio.io/v1beta1/v1beta1 APIs
	Sidecars() SidecarClient
}

clienset for the networking.istio.io/v1beta1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

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

type DestinationRuleClient

Client knows how to perform CRUD operations on DestinationRules.

type DestinationRuleReader

type DestinationRuleReader interface {
	// Get retrieves a DestinationRule for the given object key
	GetDestinationRule(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.DestinationRule, error)

	// List retrieves list of DestinationRules for a given namespace and list options.
	ListDestinationRule(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.DestinationRuleList, error)
}

Reader knows how to read and list DestinationRules.

type DestinationRuleSlice

type DestinationRuleSlice []*DestinationRule

DestinationRuleSlice represents a slice of *DestinationRule

type DestinationRuleStatusWriter

type DestinationRuleStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given DestinationRule object.
	UpdateDestinationRuleStatus(ctx context.Context, obj *networking_istio_io_v1beta1.DestinationRule, opts ...client.SubResourceUpdateOption) error

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

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

type DestinationRuleTransitionFunction

type DestinationRuleTransitionFunction func(existing, desired *networking_istio_io_v1beta1.DestinationRule) error

DestinationRuleTransitionFunction instructs the DestinationRuleWriter how to transition between an existing DestinationRule object and a desired on an Upsert

type DestinationRuleWriter

type DestinationRuleWriter interface {
	// Create saves the DestinationRule object.
	CreateDestinationRule(ctx context.Context, obj *networking_istio_io_v1beta1.DestinationRule, opts ...client.CreateOption) error

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

	// Update updates the given DestinationRule object.
	UpdateDestinationRule(ctx context.Context, obj *networking_istio_io_v1beta1.DestinationRule, opts ...client.UpdateOption) error

	// Patch patches the given DestinationRule object.
	PatchDestinationRule(ctx context.Context, obj *networking_istio_io_v1beta1.DestinationRule, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the DestinationRule object.
	UpsertDestinationRule(ctx context.Context, obj *networking_istio_io_v1beta1.DestinationRule, transitionFuncs ...DestinationRuleTransitionFunction) error
}

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

type GatewayClient

type GatewayClient interface {
	GatewayReader
	GatewayWriter
	GatewayStatusWriter
}

Client knows how to perform CRUD operations on Gateways.

type GatewayReader

type GatewayReader interface {
	// Get retrieves a Gateway for the given object key
	GetGateway(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.Gateway, error)

	// List retrieves list of Gateways for a given namespace and list options.
	ListGateway(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.GatewayList, error)
}

Reader knows how to read and list Gateways.

type GatewaySlice

type GatewaySlice []*Gateway

GatewaySlice represents a slice of *Gateway

type GatewayStatusWriter

type GatewayStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given Gateway object.
	UpdateGatewayStatus(ctx context.Context, obj *networking_istio_io_v1beta1.Gateway, opts ...client.SubResourceUpdateOption) error

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

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

type GatewayTransitionFunction

type GatewayTransitionFunction func(existing, desired *networking_istio_io_v1beta1.Gateway) error

GatewayTransitionFunction instructs the GatewayWriter how to transition between an existing Gateway object and a desired on an Upsert

type GatewayWriter

type GatewayWriter interface {
	// Create saves the Gateway object.
	CreateGateway(ctx context.Context, obj *networking_istio_io_v1beta1.Gateway, opts ...client.CreateOption) error

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

	// Update updates the given Gateway object.
	UpdateGateway(ctx context.Context, obj *networking_istio_io_v1beta1.Gateway, opts ...client.UpdateOption) error

	// Patch patches the given Gateway object.
	PatchGateway(ctx context.Context, obj *networking_istio_io_v1beta1.Gateway, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the Gateway object.
	UpsertGateway(ctx context.Context, obj *networking_istio_io_v1beta1.Gateway, transitionFuncs ...GatewayTransitionFunction) error
}

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

type MulticlusterClientset

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

MulticlusterClientset for the networking.istio.io/v1beta1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterDestinationRuleClient

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

Provides DestinationRuleClients for multiple clusters.

func NewMulticlusterDestinationRuleClient

func NewMulticlusterDestinationRuleClient(client multicluster.Client) MulticlusterDestinationRuleClient

type MulticlusterGatewayClient

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

Provides GatewayClients for multiple clusters.

func NewMulticlusterGatewayClient

func NewMulticlusterGatewayClient(client multicluster.Client) MulticlusterGatewayClient

type MulticlusterProxyConfigClient added in v0.2.7

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

Provides ProxyConfigClients for multiple clusters.

func NewMulticlusterProxyConfigClient added in v0.2.7

func NewMulticlusterProxyConfigClient(client multicluster.Client) MulticlusterProxyConfigClient

type MulticlusterServiceEntryClient

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

Provides ServiceEntryClients for multiple clusters.

func NewMulticlusterServiceEntryClient

func NewMulticlusterServiceEntryClient(client multicluster.Client) MulticlusterServiceEntryClient

type MulticlusterSidecarClient

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

Provides SidecarClients for multiple clusters.

func NewMulticlusterSidecarClient

func NewMulticlusterSidecarClient(client multicluster.Client) MulticlusterSidecarClient

type MulticlusterVirtualServiceClient

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

Provides VirtualServiceClients for multiple clusters.

func NewMulticlusterVirtualServiceClient

func NewMulticlusterVirtualServiceClient(client multicluster.Client) MulticlusterVirtualServiceClient

type MulticlusterWorkloadEntryClient

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

Provides WorkloadEntryClients for multiple clusters.

func NewMulticlusterWorkloadEntryClient

func NewMulticlusterWorkloadEntryClient(client multicluster.Client) MulticlusterWorkloadEntryClient

type MulticlusterWorkloadGroupClient added in v0.1.18

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

Provides WorkloadGroupClients for multiple clusters.

func NewMulticlusterWorkloadGroupClient added in v0.1.18

func NewMulticlusterWorkloadGroupClient(client multicluster.Client) MulticlusterWorkloadGroupClient

type ProxyConfigClient added in v0.2.7

type ProxyConfigClient interface {
	ProxyConfigReader
	ProxyConfigWriter
	ProxyConfigStatusWriter
}

Client knows how to perform CRUD operations on ProxyConfigs.

type ProxyConfigReader added in v0.2.7

type ProxyConfigReader interface {
	// Get retrieves a ProxyConfig for the given object key
	GetProxyConfig(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.ProxyConfig, error)

	// List retrieves list of ProxyConfigs for a given namespace and list options.
	ListProxyConfig(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.ProxyConfigList, error)
}

Reader knows how to read and list ProxyConfigs.

type ProxyConfigSlice added in v0.2.7

type ProxyConfigSlice []*ProxyConfig

ProxyConfigSlice represents a slice of *ProxyConfig

type ProxyConfigStatusWriter added in v0.2.7

type ProxyConfigStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ProxyConfig object.
	UpdateProxyConfigStatus(ctx context.Context, obj *networking_istio_io_v1beta1.ProxyConfig, opts ...client.SubResourceUpdateOption) error

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

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

type ProxyConfigTransitionFunction added in v0.2.7

type ProxyConfigTransitionFunction func(existing, desired *networking_istio_io_v1beta1.ProxyConfig) error

ProxyConfigTransitionFunction instructs the ProxyConfigWriter how to transition between an existing ProxyConfig object and a desired on an Upsert

type ProxyConfigWriter added in v0.2.7

type ProxyConfigWriter interface {
	// Create saves the ProxyConfig object.
	CreateProxyConfig(ctx context.Context, obj *networking_istio_io_v1beta1.ProxyConfig, opts ...client.CreateOption) error

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

	// Update updates the given ProxyConfig object.
	UpdateProxyConfig(ctx context.Context, obj *networking_istio_io_v1beta1.ProxyConfig, opts ...client.UpdateOption) error

	// Patch patches the given ProxyConfig object.
	PatchProxyConfig(ctx context.Context, obj *networking_istio_io_v1beta1.ProxyConfig, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the ProxyConfig object.
	UpsertProxyConfig(ctx context.Context, obj *networking_istio_io_v1beta1.ProxyConfig, transitionFuncs ...ProxyConfigTransitionFunction) error
}

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

type ServiceEntryClient

type ServiceEntryClient interface {
	ServiceEntryReader
	ServiceEntryWriter
	ServiceEntryStatusWriter
}

Client knows how to perform CRUD operations on ServiceEntrys.

type ServiceEntryReader

type ServiceEntryReader interface {
	// Get retrieves a ServiceEntry for the given object key
	GetServiceEntry(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.ServiceEntry, error)

	// List retrieves list of ServiceEntrys for a given namespace and list options.
	ListServiceEntry(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.ServiceEntryList, error)
}

Reader knows how to read and list ServiceEntrys.

type ServiceEntrySlice

type ServiceEntrySlice []*ServiceEntry

ServiceEntrySlice represents a slice of *ServiceEntry

type ServiceEntryStatusWriter

type ServiceEntryStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ServiceEntry object.
	UpdateServiceEntryStatus(ctx context.Context, obj *networking_istio_io_v1beta1.ServiceEntry, opts ...client.SubResourceUpdateOption) error

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

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

type ServiceEntryTransitionFunction

type ServiceEntryTransitionFunction func(existing, desired *networking_istio_io_v1beta1.ServiceEntry) error

ServiceEntryTransitionFunction instructs the ServiceEntryWriter how to transition between an existing ServiceEntry object and a desired on an Upsert

type ServiceEntryWriter

type ServiceEntryWriter interface {
	// Create saves the ServiceEntry object.
	CreateServiceEntry(ctx context.Context, obj *networking_istio_io_v1beta1.ServiceEntry, opts ...client.CreateOption) error

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

	// Update updates the given ServiceEntry object.
	UpdateServiceEntry(ctx context.Context, obj *networking_istio_io_v1beta1.ServiceEntry, opts ...client.UpdateOption) error

	// Patch patches the given ServiceEntry object.
	PatchServiceEntry(ctx context.Context, obj *networking_istio_io_v1beta1.ServiceEntry, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the ServiceEntry object.
	UpsertServiceEntry(ctx context.Context, obj *networking_istio_io_v1beta1.ServiceEntry, transitionFuncs ...ServiceEntryTransitionFunction) error
}

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

type SidecarClient

type SidecarClient interface {
	SidecarReader
	SidecarWriter
	SidecarStatusWriter
}

Client knows how to perform CRUD operations on Sidecars.

type SidecarReader

type SidecarReader interface {
	// Get retrieves a Sidecar for the given object key
	GetSidecar(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.Sidecar, error)

	// List retrieves list of Sidecars for a given namespace and list options.
	ListSidecar(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.SidecarList, error)
}

Reader knows how to read and list Sidecars.

type SidecarSlice

type SidecarSlice []*Sidecar

SidecarSlice represents a slice of *Sidecar

type SidecarStatusWriter

type SidecarStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given Sidecar object.
	UpdateSidecarStatus(ctx context.Context, obj *networking_istio_io_v1beta1.Sidecar, opts ...client.SubResourceUpdateOption) error

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

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

type SidecarTransitionFunction

type SidecarTransitionFunction func(existing, desired *networking_istio_io_v1beta1.Sidecar) error

SidecarTransitionFunction instructs the SidecarWriter how to transition between an existing Sidecar object and a desired on an Upsert

type SidecarWriter

type SidecarWriter interface {
	// Create saves the Sidecar object.
	CreateSidecar(ctx context.Context, obj *networking_istio_io_v1beta1.Sidecar, opts ...client.CreateOption) error

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

	// Update updates the given Sidecar object.
	UpdateSidecar(ctx context.Context, obj *networking_istio_io_v1beta1.Sidecar, opts ...client.UpdateOption) error

	// Patch patches the given Sidecar object.
	PatchSidecar(ctx context.Context, obj *networking_istio_io_v1beta1.Sidecar, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the Sidecar object.
	UpsertSidecar(ctx context.Context, obj *networking_istio_io_v1beta1.Sidecar, transitionFuncs ...SidecarTransitionFunction) error
}

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

type VirtualServiceClient

type VirtualServiceClient interface {
	VirtualServiceReader
	VirtualServiceWriter
	VirtualServiceStatusWriter
}

Client knows how to perform CRUD operations on VirtualServices.

type VirtualServiceReader

type VirtualServiceReader interface {
	// Get retrieves a VirtualService for the given object key
	GetVirtualService(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.VirtualService, error)

	// List retrieves list of VirtualServices for a given namespace and list options.
	ListVirtualService(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.VirtualServiceList, error)
}

Reader knows how to read and list VirtualServices.

type VirtualServiceSlice

type VirtualServiceSlice []*VirtualService

VirtualServiceSlice represents a slice of *VirtualService

type VirtualServiceStatusWriter

type VirtualServiceStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given VirtualService object.
	UpdateVirtualServiceStatus(ctx context.Context, obj *networking_istio_io_v1beta1.VirtualService, opts ...client.SubResourceUpdateOption) error

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

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

type VirtualServiceTransitionFunction

type VirtualServiceTransitionFunction func(existing, desired *networking_istio_io_v1beta1.VirtualService) error

VirtualServiceTransitionFunction instructs the VirtualServiceWriter how to transition between an existing VirtualService object and a desired on an Upsert

type VirtualServiceWriter

type VirtualServiceWriter interface {
	// Create saves the VirtualService object.
	CreateVirtualService(ctx context.Context, obj *networking_istio_io_v1beta1.VirtualService, opts ...client.CreateOption) error

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

	// Update updates the given VirtualService object.
	UpdateVirtualService(ctx context.Context, obj *networking_istio_io_v1beta1.VirtualService, opts ...client.UpdateOption) error

	// Patch patches the given VirtualService object.
	PatchVirtualService(ctx context.Context, obj *networking_istio_io_v1beta1.VirtualService, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the VirtualService object.
	UpsertVirtualService(ctx context.Context, obj *networking_istio_io_v1beta1.VirtualService, transitionFuncs ...VirtualServiceTransitionFunction) error
}

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

type WorkloadEntryClient

type WorkloadEntryClient interface {
	WorkloadEntryReader
	WorkloadEntryWriter
	WorkloadEntryStatusWriter
}

Client knows how to perform CRUD operations on WorkloadEntrys.

type WorkloadEntryReader

type WorkloadEntryReader interface {
	// Get retrieves a WorkloadEntry for the given object key
	GetWorkloadEntry(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.WorkloadEntry, error)

	// List retrieves list of WorkloadEntrys for a given namespace and list options.
	ListWorkloadEntry(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.WorkloadEntryList, error)
}

Reader knows how to read and list WorkloadEntrys.

type WorkloadEntrySlice

type WorkloadEntrySlice []*WorkloadEntry

WorkloadEntrySlice represents a slice of *WorkloadEntry

type WorkloadEntryStatusWriter

type WorkloadEntryStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given WorkloadEntry object.
	UpdateWorkloadEntryStatus(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadEntry, opts ...client.SubResourceUpdateOption) error

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

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

type WorkloadEntryTransitionFunction

type WorkloadEntryTransitionFunction func(existing, desired *networking_istio_io_v1beta1.WorkloadEntry) error

WorkloadEntryTransitionFunction instructs the WorkloadEntryWriter how to transition between an existing WorkloadEntry object and a desired on an Upsert

type WorkloadEntryWriter

type WorkloadEntryWriter interface {
	// Create saves the WorkloadEntry object.
	CreateWorkloadEntry(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadEntry, opts ...client.CreateOption) error

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

	// Update updates the given WorkloadEntry object.
	UpdateWorkloadEntry(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadEntry, opts ...client.UpdateOption) error

	// Patch patches the given WorkloadEntry object.
	PatchWorkloadEntry(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadEntry, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the WorkloadEntry object.
	UpsertWorkloadEntry(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadEntry, transitionFuncs ...WorkloadEntryTransitionFunction) error
}

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

type WorkloadGroupClient added in v0.1.18

type WorkloadGroupClient interface {
	WorkloadGroupReader
	WorkloadGroupWriter
	WorkloadGroupStatusWriter
}

Client knows how to perform CRUD operations on WorkloadGroups.

type WorkloadGroupReader added in v0.1.18

type WorkloadGroupReader interface {
	// Get retrieves a WorkloadGroup for the given object key
	GetWorkloadGroup(ctx context.Context, key client.ObjectKey) (*networking_istio_io_v1beta1.WorkloadGroup, error)

	// List retrieves list of WorkloadGroups for a given namespace and list options.
	ListWorkloadGroup(ctx context.Context, opts ...client.ListOption) (*networking_istio_io_v1beta1.WorkloadGroupList, error)
}

Reader knows how to read and list WorkloadGroups.

type WorkloadGroupSlice added in v0.1.18

type WorkloadGroupSlice []*WorkloadGroup

WorkloadGroupSlice represents a slice of *WorkloadGroup

type WorkloadGroupStatusWriter added in v0.1.18

type WorkloadGroupStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given WorkloadGroup object.
	UpdateWorkloadGroupStatus(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadGroup, opts ...client.SubResourceUpdateOption) error

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

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

type WorkloadGroupTransitionFunction added in v0.1.18

type WorkloadGroupTransitionFunction func(existing, desired *networking_istio_io_v1beta1.WorkloadGroup) error

WorkloadGroupTransitionFunction instructs the WorkloadGroupWriter how to transition between an existing WorkloadGroup object and a desired on an Upsert

type WorkloadGroupWriter added in v0.1.18

type WorkloadGroupWriter interface {
	// Create saves the WorkloadGroup object.
	CreateWorkloadGroup(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadGroup, opts ...client.CreateOption) error

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

	// Update updates the given WorkloadGroup object.
	UpdateWorkloadGroup(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadGroup, opts ...client.UpdateOption) error

	// Patch patches the given WorkloadGroup object.
	PatchWorkloadGroup(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadGroup, patch client.Patch, opts ...client.PatchOption) error

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

	// Create or Update the WorkloadGroup object.
	UpsertWorkloadGroup(ctx context.Context, obj *networking_istio_io_v1beta1.WorkloadGroup, transitionFuncs ...WorkloadGroupTransitionFunction) error
}

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

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_v1beta1 is a generated GoMock package.
Package mock_v1beta1 is a generated GoMock package.
mocks
Package mock_v1beta1sets is a generated GoMock package.
Package mock_v1beta1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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