Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) DestinationRules(namespace string) DestinationRuleInterface
- func (c *Client) Gateways(namespace string) GatewayInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) ServiceEntries(namespace string) ServiceEntryInterface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) Sync(ctx context.Context) error
- func (c *Client) VirtualServices(namespace string) VirtualServiceInterface
- type Clients
- type DestinationRule
- type DestinationRuleChangeHandlerFunc
- type DestinationRuleClient
- type DestinationRuleClientCache
- type DestinationRuleController
- type DestinationRuleHandlerFunc
- type DestinationRuleIndexer
- type DestinationRuleInterface
- type DestinationRuleLifecycle
- type DestinationRuleList
- type DestinationRuleLister
- type DestinationRulesGetter
- type Gateway
- type GatewayChangeHandlerFunc
- type GatewayClient
- type GatewayClientCache
- type GatewayController
- type GatewayHandlerFunc
- type GatewayIndexer
- type GatewayInterface
- type GatewayLifecycle
- type GatewayList
- type GatewayLister
- type GatewaysGetter
- type Interface
- type Port
- type ServiceEntriesGetter
- type ServiceEntry
- type ServiceEntryChangeHandlerFunc
- type ServiceEntryClient
- type ServiceEntryClientCache
- type ServiceEntryController
- type ServiceEntryHandlerFunc
- type ServiceEntryIndexer
- type ServiceEntryInterface
- type ServiceEntryLifecycle
- type ServiceEntryList
- type ServiceEntryLister
- type ServiceEntrySpec
- type ServiceEntry_Endpoint
- type VirtualService
- type VirtualServiceChangeHandlerFunc
- type VirtualServiceClient
- type VirtualServiceClientCache
- type VirtualServiceController
- type VirtualServiceHandlerFunc
- type VirtualServiceIndexer
- type VirtualServiceInterface
- type VirtualServiceLifecycle
- type VirtualServiceList
- type VirtualServiceLister
- type VirtualServicesGetter
Constants ¶
const ( GroupName = "networking.istio.io" Version = "v1alpha3" )
Variables ¶
var ( DestinationRuleGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "DestinationRule", } DestinationRuleResource = metav1.APIResource{ Name: "destinationrules", SingularName: "destinationrule", Namespaced: true, Kind: DestinationRuleGroupVersionKind.Kind, } )
var ( GatewayGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Gateway", } GatewayResource = metav1.APIResource{ Name: "gateways", SingularName: "gateway", Namespaced: true, Kind: GatewayGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( ServiceEntryGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ServiceEntry", } ServiceEntryResource = metav1.APIResource{ Name: "serviceentries", SingularName: "serviceentry", Namespaced: true, Kind: ServiceEntryGroupVersionKind.Kind, } )
var ( VirtualServiceGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "VirtualService", } VirtualServiceResource = metav1.APIResource{ Name: "virtualservices", SingularName: "virtualservice", Namespaced: true, Kind: VirtualServiceGroupVersionKind.Kind, } )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) DestinationRules ¶
func (c *Client) DestinationRules(namespace string) DestinationRuleInterface
func (*Client) Gateways ¶
func (c *Client) Gateways(namespace string) GatewayInterface
func (*Client) RESTClient ¶
func (*Client) ServiceEntries ¶
func (c *Client) ServiceEntries(namespace string) ServiceEntryInterface
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 NewClientsFromInterface ¶
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 (*Gateway) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.
func (*Gateway) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Gateway) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 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 ¶
func NewGatewayLifecycleAdapter ¶
func NewGatewayLifecycleAdapter(name string, clusterScoped bool, client GatewayInterface, l GatewayLifecycle) GatewayHandlerFunc
type GatewayIndexer ¶
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 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 GatewaysGetter ¶
type GatewaysGetter interface {
Gateways(namespace string) GatewayInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter GatewaysGetter VirtualServicesGetter DestinationRulesGetter ServiceEntriesGetter }
type Port ¶
type Port struct { Number uint32 `json:"number,omitempty"` Protocol string `json:"protocol,omitempty"` Name string `json:"name,omitempty"` }
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
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 ¶
func (in *ServiceEntry_Endpoint) DeepCopy() *ServiceEntry_Endpoint
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
}
Source Files ¶
- types.go
- zz_generated_deepcopy.go
- zz_generated_destination_rule_controller.go
- zz_generated_destination_rule_lifecycle_adapter.go
- zz_generated_gateway_controller.go
- zz_generated_gateway_lifecycle_adapter.go
- zz_generated_k8s_client.go
- zz_generated_scheme.go
- zz_generated_service_entry_controller.go
- zz_generated_service_entry_lifecycle_adapter.go
- zz_generated_virtual_service_controller.go
- zz_generated_virtual_service_lifecycle_adapter.go