v1alpha3

package
v0.0.4-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "networking.istio.io"
	Version   = "v1alpha3"
)

Variables

View Source
var (
	DestinationRuleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "DestinationRule",
	}
	DestinationRuleResource = metav1.APIResource{
		Name:         "destinationrules",
		SingularName: "destinationrule",
		Namespaced:   true,

		Kind: DestinationRuleGroupVersionKind.Kind,
	}
)
View Source
var (
	GatewayGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Gateway",
	}
	GatewayResource = metav1.APIResource{
		Name:         "gateways",
		SingularName: "gateway",
		Namespaced:   true,

		Kind: GatewayGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	ServiceEntryGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ServiceEntry",
	}
	ServiceEntryResource = metav1.APIResource{
		Name:         "serviceentries",
		SingularName: "serviceentry",
		Namespaced:   true,

		Kind: ServiceEntryGroupVersionKind.Kind,
	}
)
View Source
var (
	VirtualServiceGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "VirtualService",
	}
	VirtualServiceResource = metav1.APIResource{
		Name:         "virtualservices",
		SingularName: "virtualservice",
		Namespaced:   true,

		Kind: VirtualServiceGroupVersionKind.Kind,
	}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Factory

func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) DestinationRules

func (c *Client) DestinationRules(namespace string) DestinationRuleInterface

func (*Client) Gateways

func (c *Client) Gateways(namespace string) GatewayInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) ServiceEntries

func (c *Client) ServiceEntries(namespace string) ServiceEntryInterface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

func (*Client) VirtualServices

func (c *Client) VirtualServices(namespace string) VirtualServiceInterface

type Clients

type Clients struct {
	Interface Interface

	Gateway         GatewayClient
	VirtualService  VirtualServiceClient
	DestinationRule DestinationRuleClient
	ServiceEntry    ServiceEntryClient
}

func ClientsFrom

func ClientsFrom(ctx context.Context) *Clients

func NewClients

func NewClients(config rest.Config) (*Clients, error)

func NewClientsFromInterface

func NewClientsFromInterface(iface Interface) *Clients

type DestinationRule

type DestinationRule struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec v1alpha3.DestinationRuleSpec `json:"spec"`
}

func NewDestinationRule

func NewDestinationRule(namespace, name string, obj DestinationRule) *DestinationRule

func (*DestinationRule) DeepCopy

func (in *DestinationRule) DeepCopy() *DestinationRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule.

func (*DestinationRule) DeepCopyInto

func (in *DestinationRule) DeepCopyInto(out *DestinationRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DestinationRule) DeepCopyObject

func (in *DestinationRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DestinationRuleChangeHandlerFunc

type DestinationRuleChangeHandlerFunc func(obj *DestinationRule) (runtime.Object, error)

type DestinationRuleClient

type DestinationRuleClient interface {
	Create(*DestinationRule) (*DestinationRule, error)
	Get(namespace, name string, opts metav1.GetOptions) (*DestinationRule, error)
	Update(*DestinationRule) (*DestinationRule, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*DestinationRuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() DestinationRuleClientCache

	OnCreate(ctx context.Context, name string, sync DestinationRuleChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync DestinationRuleChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync DestinationRuleChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() DestinationRuleInterface
}

type DestinationRuleClientCache

type DestinationRuleClientCache interface {
	Get(namespace, name string) (*DestinationRule, error)
	List(namespace string, selector labels.Selector) ([]*DestinationRule, error)

	Index(name string, indexer DestinationRuleIndexer)
	GetIndexed(name, key string) ([]*DestinationRule, error)
}

type DestinationRuleController

type DestinationRuleController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() DestinationRuleLister
	AddHandler(ctx context.Context, name string, handler DestinationRuleHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DestinationRuleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type DestinationRuleHandlerFunc

type DestinationRuleHandlerFunc func(key string, obj *DestinationRule) (runtime.Object, error)

func NewDestinationRuleLifecycleAdapter

func NewDestinationRuleLifecycleAdapter(name string, clusterScoped bool, client DestinationRuleInterface, l DestinationRuleLifecycle) DestinationRuleHandlerFunc

type DestinationRuleIndexer

type DestinationRuleIndexer func(obj *DestinationRule) ([]string, error)

type DestinationRuleInterface

type DestinationRuleInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*DestinationRule) (*DestinationRule, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*DestinationRule, error)
	Get(name string, opts metav1.GetOptions) (*DestinationRule, error)
	Update(*DestinationRule) (*DestinationRule, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*DestinationRuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() DestinationRuleController
	AddHandler(ctx context.Context, name string, sync DestinationRuleHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle DestinationRuleLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DestinationRuleHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DestinationRuleLifecycle)
}

type DestinationRuleLifecycle

type DestinationRuleLifecycle interface {
	Create(obj *DestinationRule) (runtime.Object, error)
	Remove(obj *DestinationRule) (runtime.Object, error)
	Updated(obj *DestinationRule) (runtime.Object, error)
}

type DestinationRuleList

type DestinationRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DestinationRule
}

func (*DestinationRuleList) DeepCopy

func (in *DestinationRuleList) DeepCopy() *DestinationRuleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRuleList.

func (*DestinationRuleList) DeepCopyInto

func (in *DestinationRuleList) DeepCopyInto(out *DestinationRuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DestinationRuleList) DeepCopyObject

func (in *DestinationRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DestinationRuleLister

type DestinationRuleLister interface {
	List(namespace string, selector labels.Selector) (ret []*DestinationRule, err error)
	Get(namespace, name string) (*DestinationRule, error)
}

type DestinationRulesGetter

type DestinationRulesGetter interface {
	DestinationRules(namespace string) DestinationRuleInterface
}

type Gateway

type Gateway struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec v1alpha3.GatewaySpec `json:"spec"`
}

func NewGateway

func NewGateway(namespace, name string, obj Gateway) *Gateway

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Gateway) DeepCopyObject

func (in *Gateway) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewayChangeHandlerFunc

type GatewayChangeHandlerFunc func(obj *Gateway) (runtime.Object, error)

type GatewayClient

type GatewayClient interface {
	Create(*Gateway) (*Gateway, error)
	Get(namespace, name string, opts metav1.GetOptions) (*Gateway, error)
	Update(*Gateway) (*Gateway, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*GatewayList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() GatewayClientCache

	OnCreate(ctx context.Context, name string, sync GatewayChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync GatewayChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync GatewayChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() GatewayInterface
}

type GatewayClientCache

type GatewayClientCache interface {
	Get(namespace, name string) (*Gateway, error)
	List(namespace string, selector labels.Selector) ([]*Gateway, error)

	Index(name string, indexer GatewayIndexer)
	GetIndexed(name, key string) ([]*Gateway, error)
}

type GatewayController

type GatewayController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() GatewayLister
	AddHandler(ctx context.Context, name string, handler GatewayHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler GatewayHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type GatewayHandlerFunc

type GatewayHandlerFunc func(key string, obj *Gateway) (runtime.Object, error)

func NewGatewayLifecycleAdapter

func NewGatewayLifecycleAdapter(name string, clusterScoped bool, client GatewayInterface, l GatewayLifecycle) GatewayHandlerFunc

type GatewayIndexer

type GatewayIndexer func(obj *Gateway) ([]string, error)

type GatewayInterface

type GatewayInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Gateway) (*Gateway, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Gateway, error)
	Get(name string, opts metav1.GetOptions) (*Gateway, error)
	Update(*Gateway) (*Gateway, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*GatewayList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() GatewayController
	AddHandler(ctx context.Context, name string, sync GatewayHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle GatewayLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync GatewayHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle GatewayLifecycle)
}

type GatewayLifecycle

type GatewayLifecycle interface {
	Create(obj *Gateway) (runtime.Object, error)
	Remove(obj *Gateway) (runtime.Object, error)
	Updated(obj *Gateway) (runtime.Object, error)
}

type GatewayList

type GatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Gateway
}

func (*GatewayList) DeepCopy

func (in *GatewayList) DeepCopy() *GatewayList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayList.

func (*GatewayList) DeepCopyInto

func (in *GatewayList) DeepCopyInto(out *GatewayList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GatewayList) DeepCopyObject

func (in *GatewayList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewayLister

type GatewayLister interface {
	List(namespace string, selector labels.Selector) (ret []*Gateway, err error)
	Get(namespace, name string) (*Gateway, error)
}

type GatewaysGetter

type GatewaysGetter interface {
	Gateways(namespace string) GatewayInterface
}

type Port

type Port struct {
	Number   uint32 `json:"number,omitempty"`
	Protocol string `json:"protocol,omitempty"`
	Name     string `json:"name,omitempty"`
}

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceEntriesGetter

type ServiceEntriesGetter interface {
	ServiceEntries(namespace string) ServiceEntryInterface
}

type ServiceEntry

type ServiceEntry struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ServiceEntrySpec `json:"spec"`
}

func NewServiceEntry

func NewServiceEntry(namespace, name string, obj ServiceEntry) *ServiceEntry

func (*ServiceEntry) DeepCopy

func (in *ServiceEntry) DeepCopy() *ServiceEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntry.

func (*ServiceEntry) DeepCopyInto

func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceEntry) DeepCopyObject

func (in *ServiceEntry) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceEntryChangeHandlerFunc

type ServiceEntryChangeHandlerFunc func(obj *ServiceEntry) (runtime.Object, error)

type ServiceEntryClient

type ServiceEntryClient interface {
	Create(*ServiceEntry) (*ServiceEntry, error)
	Get(namespace, name string, opts metav1.GetOptions) (*ServiceEntry, error)
	Update(*ServiceEntry) (*ServiceEntry, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ServiceEntryList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ServiceEntryClientCache

	OnCreate(ctx context.Context, name string, sync ServiceEntryChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync ServiceEntryChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync ServiceEntryChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() ServiceEntryInterface
}

type ServiceEntryClientCache

type ServiceEntryClientCache interface {
	Get(namespace, name string) (*ServiceEntry, error)
	List(namespace string, selector labels.Selector) ([]*ServiceEntry, error)

	Index(name string, indexer ServiceEntryIndexer)
	GetIndexed(name, key string) ([]*ServiceEntry, error)
}

type ServiceEntryController

type ServiceEntryController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ServiceEntryLister
	AddHandler(ctx context.Context, name string, handler ServiceEntryHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ServiceEntryHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ServiceEntryHandlerFunc

type ServiceEntryHandlerFunc func(key string, obj *ServiceEntry) (runtime.Object, error)

func NewServiceEntryLifecycleAdapter

func NewServiceEntryLifecycleAdapter(name string, clusterScoped bool, client ServiceEntryInterface, l ServiceEntryLifecycle) ServiceEntryHandlerFunc

type ServiceEntryIndexer

type ServiceEntryIndexer func(obj *ServiceEntry) ([]string, error)

type ServiceEntryInterface

type ServiceEntryInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*ServiceEntry) (*ServiceEntry, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ServiceEntry, error)
	Get(name string, opts metav1.GetOptions) (*ServiceEntry, error)
	Update(*ServiceEntry) (*ServiceEntry, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ServiceEntryList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ServiceEntryController
	AddHandler(ctx context.Context, name string, sync ServiceEntryHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ServiceEntryLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceEntryHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceEntryLifecycle)
}

type ServiceEntryLifecycle

type ServiceEntryLifecycle interface {
	Create(obj *ServiceEntry) (runtime.Object, error)
	Remove(obj *ServiceEntry) (runtime.Object, error)
	Updated(obj *ServiceEntry) (runtime.Object, error)
}

type ServiceEntryList

type ServiceEntryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceEntry
}

func (*ServiceEntryList) DeepCopy

func (in *ServiceEntryList) DeepCopy() *ServiceEntryList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntryList.

func (*ServiceEntryList) DeepCopyInto

func (in *ServiceEntryList) DeepCopyInto(out *ServiceEntryList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ServiceEntryList) DeepCopyObject

func (in *ServiceEntryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ServiceEntryLister

type ServiceEntryLister interface {
	List(namespace string, selector labels.Selector) (ret []*ServiceEntry, err error)
	Get(namespace, name string) (*ServiceEntry, error)
}

type ServiceEntrySpec

type ServiceEntrySpec struct {
	Hosts      []string                              `json:"hosts,omitempty"`
	Addresses  []string                              `json:"addresses,omitempty"`
	Ports      []Port                                `json:"ports,omitempty"`
	Location   istiov1alpha3.ServiceEntry_Location   `json:"location,omitempty"`
	Resolution istiov1alpha3.ServiceEntry_Resolution `json:"resolution,omitempty"`
	Endpoints  []ServiceEntry_Endpoint               `json:"endpoints,omitempty"`
}

func (*ServiceEntrySpec) DeepCopy

func (in *ServiceEntrySpec) DeepCopy() *ServiceEntrySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntrySpec.

func (*ServiceEntrySpec) DeepCopyInto

func (in *ServiceEntrySpec) DeepCopyInto(out *ServiceEntrySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceEntry_Endpoint

type ServiceEntry_Endpoint struct {
	Address string            `json:"address,omitempty"`
	Ports   map[string]uint32 `json:"ports,omitempty"`
	Labels  map[string]string `json:"labels,omitempty"`
}

func (*ServiceEntry_Endpoint) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntry_Endpoint.

func (*ServiceEntry_Endpoint) DeepCopyInto

func (in *ServiceEntry_Endpoint) DeepCopyInto(out *ServiceEntry_Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualService

type VirtualService struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec v1alpha3.VirtualServiceSpec `json:"spec"`
}

func NewVirtualService

func NewVirtualService(namespace, name string, obj VirtualService) *VirtualService

func (*VirtualService) DeepCopy

func (in *VirtualService) DeepCopy() *VirtualService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService.

func (*VirtualService) DeepCopyInto

func (in *VirtualService) DeepCopyInto(out *VirtualService)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualService) DeepCopyObject

func (in *VirtualService) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualServiceChangeHandlerFunc

type VirtualServiceChangeHandlerFunc func(obj *VirtualService) (runtime.Object, error)

type VirtualServiceClient

type VirtualServiceClient interface {
	Create(*VirtualService) (*VirtualService, error)
	Get(namespace, name string, opts metav1.GetOptions) (*VirtualService, error)
	Update(*VirtualService) (*VirtualService, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*VirtualServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() VirtualServiceClientCache

	OnCreate(ctx context.Context, name string, sync VirtualServiceChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync VirtualServiceChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync VirtualServiceChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	ObjectClient() *objectclient.ObjectClient
	Interface() VirtualServiceInterface
}

type VirtualServiceClientCache

type VirtualServiceClientCache interface {
	Get(namespace, name string) (*VirtualService, error)
	List(namespace string, selector labels.Selector) ([]*VirtualService, error)

	Index(name string, indexer VirtualServiceIndexer)
	GetIndexed(name, key string) ([]*VirtualService, error)
}

type VirtualServiceController

type VirtualServiceController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() VirtualServiceLister
	AddHandler(ctx context.Context, name string, handler VirtualServiceHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler VirtualServiceHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type VirtualServiceHandlerFunc

type VirtualServiceHandlerFunc func(key string, obj *VirtualService) (runtime.Object, error)

func NewVirtualServiceLifecycleAdapter

func NewVirtualServiceLifecycleAdapter(name string, clusterScoped bool, client VirtualServiceInterface, l VirtualServiceLifecycle) VirtualServiceHandlerFunc

type VirtualServiceIndexer

type VirtualServiceIndexer func(obj *VirtualService) ([]string, error)

type VirtualServiceInterface

type VirtualServiceInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*VirtualService) (*VirtualService, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*VirtualService, error)
	Get(name string, opts metav1.GetOptions) (*VirtualService, error)
	Update(*VirtualService) (*VirtualService, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*VirtualServiceList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() VirtualServiceController
	AddHandler(ctx context.Context, name string, sync VirtualServiceHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle VirtualServiceLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync VirtualServiceHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle VirtualServiceLifecycle)
}

type VirtualServiceLifecycle

type VirtualServiceLifecycle interface {
	Create(obj *VirtualService) (runtime.Object, error)
	Remove(obj *VirtualService) (runtime.Object, error)
	Updated(obj *VirtualService) (runtime.Object, error)
}

type VirtualServiceList

type VirtualServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualService
}

func (*VirtualServiceList) DeepCopy

func (in *VirtualServiceList) DeepCopy() *VirtualServiceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualServiceList.

func (*VirtualServiceList) DeepCopyInto

func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualServiceList) DeepCopyObject

func (in *VirtualServiceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualServiceLister

type VirtualServiceLister interface {
	List(namespace string, selector labels.Selector) (ret []*VirtualService, err error)
	Get(namespace, name string) (*VirtualService, error)
}

type VirtualServicesGetter

type VirtualServicesGetter interface {
	VirtualServices(namespace string) VirtualServiceInterface
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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