Documentation
¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewDestinationRule(namespace, name string, obj v1alpha3.DestinationRule) *v1alpha3.DestinationRule
- func NewGateway(namespace, name string, obj v1alpha3.Gateway) *v1alpha3.Gateway
- func NewVirtualService(namespace, name string, obj v1alpha3.VirtualService) *v1alpha3.VirtualService
- 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) 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 DestinationRuleChangeHandlerFunc
- type DestinationRuleClient
- type DestinationRuleClientCache
- type DestinationRuleController
- type DestinationRuleHandlerFunc
- type DestinationRuleIndexer
- type DestinationRuleInterface
- type DestinationRuleLifecycle
- type DestinationRuleList
- type DestinationRuleLister
- type DestinationRulesGetter
- 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 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 ( 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 NewDestinationRule ¶
func NewDestinationRule(namespace, name string, obj v1alpha3.DestinationRule) *v1alpha3.DestinationRule
func NewVirtualService ¶
func NewVirtualService(namespace, name string, obj v1alpha3.VirtualService) *v1alpha3.VirtualService
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) VirtualServices ¶
func (c *Client) VirtualServices(namespace string) VirtualServiceInterface
type Clients ¶
type Clients struct { Interface Interface VirtualService VirtualServiceClient Gateway GatewayClient DestinationRule DestinationRuleClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type DestinationRuleChangeHandlerFunc ¶
type DestinationRuleChangeHandlerFunc func(obj *v1alpha3.DestinationRule) (runtime.Object, error)
type DestinationRuleClient ¶
type DestinationRuleClient interface { Create(*v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha3.DestinationRule, error) Update(*v1alpha3.DestinationRule) (*v1alpha3.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) (*v1alpha3.DestinationRule, error) List(namespace string, selector labels.Selector) ([]*v1alpha3.DestinationRule, error) Index(name string, indexer DestinationRuleIndexer) GetIndexed(name, key string) ([]*v1alpha3.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 *v1alpha3.DestinationRule) (runtime.Object, error)
func NewDestinationRuleLifecycleAdapter ¶
func NewDestinationRuleLifecycleAdapter(name string, clusterScoped bool, client DestinationRuleInterface, l DestinationRuleLifecycle) DestinationRuleHandlerFunc
type DestinationRuleIndexer ¶
type DestinationRuleIndexer func(obj *v1alpha3.DestinationRule) ([]string, error)
type DestinationRuleInterface ¶
type DestinationRuleInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha3.DestinationRule) (*v1alpha3.DestinationRule, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha3.DestinationRule, error) Get(name string, opts metav1.GetOptions) (*v1alpha3.DestinationRule, error) Update(*v1alpha3.DestinationRule) (*v1alpha3.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 *v1alpha3.DestinationRule) (runtime.Object, error) Remove(obj *v1alpha3.DestinationRule) (runtime.Object, error) Updated(obj *v1alpha3.DestinationRule) (runtime.Object, error) }
type DestinationRuleList ¶
type DestinationRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha3.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 []*v1alpha3.DestinationRule, err error) Get(namespace, name string) (*v1alpha3.DestinationRule, error) }
type DestinationRulesGetter ¶
type DestinationRulesGetter interface {
DestinationRules(namespace string) DestinationRuleInterface
}
type GatewayClient ¶
type GatewayClient interface { Create(*v1alpha3.Gateway) (*v1alpha3.Gateway, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha3.Gateway, error) Update(*v1alpha3.Gateway) (*v1alpha3.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 GatewayInterface ¶
type GatewayInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha3.Gateway) (*v1alpha3.Gateway, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha3.Gateway, error) Get(name string, opts metav1.GetOptions) (*v1alpha3.Gateway, error) Update(*v1alpha3.Gateway) (*v1alpha3.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 []v1alpha3.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 VirtualServicesGetter GatewaysGetter DestinationRulesGetter }
type VirtualServiceChangeHandlerFunc ¶
type VirtualServiceChangeHandlerFunc func(obj *v1alpha3.VirtualService) (runtime.Object, error)
type VirtualServiceClient ¶
type VirtualServiceClient interface { Create(*v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha3.VirtualService, error) Update(*v1alpha3.VirtualService) (*v1alpha3.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) (*v1alpha3.VirtualService, error) List(namespace string, selector labels.Selector) ([]*v1alpha3.VirtualService, error) Index(name string, indexer VirtualServiceIndexer) GetIndexed(name, key string) ([]*v1alpha3.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 *v1alpha3.VirtualService) (runtime.Object, error)
func NewVirtualServiceLifecycleAdapter ¶
func NewVirtualServiceLifecycleAdapter(name string, clusterScoped bool, client VirtualServiceInterface, l VirtualServiceLifecycle) VirtualServiceHandlerFunc
type VirtualServiceIndexer ¶
type VirtualServiceIndexer func(obj *v1alpha3.VirtualService) ([]string, error)
type VirtualServiceInterface ¶
type VirtualServiceInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha3.VirtualService) (*v1alpha3.VirtualService, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha3.VirtualService, error) Get(name string, opts metav1.GetOptions) (*v1alpha3.VirtualService, error) Update(*v1alpha3.VirtualService) (*v1alpha3.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 *v1alpha3.VirtualService) (runtime.Object, error) Remove(obj *v1alpha3.VirtualService) (runtime.Object, error) Updated(obj *v1alpha3.VirtualService) (runtime.Object, error) }
type VirtualServiceList ¶
type VirtualServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha3.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 []*v1alpha3.VirtualService, err error) Get(namespace, name string) (*v1alpha3.VirtualService, error) }
type VirtualServicesGetter ¶
type VirtualServicesGetter interface {
VirtualServices(namespace string) VirtualServiceInterface
}
Source Files
¶
- 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_virtual_service_controller.go
- zz_generated_virtual_service_lifecycle_adapter.go