Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func NewDestinationRule(namespace, name string, obj v1alpha3.DestinationRule) *v1alpha3.DestinationRule
- 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) 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 DestinationRuleChangeHandlerFunc
- type DestinationRuleController
- type DestinationRuleHandlerFunc
- type DestinationRuleInterface
- type DestinationRuleLifecycle
- type DestinationRuleList
- type DestinationRuleLister
- type DestinationRulesGetter
- type Interface
- type VirtualServiceChangeHandlerFunc
- type VirtualServiceController
- type VirtualServiceHandlerFunc
- 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, } DestinationRuleGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "destinationrules", } )
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, } VirtualServiceGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "virtualservices", } )
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) RESTClient ¶
func (*Client) VirtualServices ¶
func (c *Client) VirtualServices(namespace string) VirtualServiceInterface
type DestinationRuleChangeHandlerFunc ¶
type DestinationRuleChangeHandlerFunc func(obj *v1alpha3.DestinationRule) (runtime.Object, error)
type DestinationRuleController ¶
type DestinationRuleController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() DestinationRuleLister AddHandler(ctx context.Context, name string, handler DestinationRuleHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DestinationRuleHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler DestinationRuleHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler DestinationRuleHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) 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 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) ListNamespaced(namespace string, 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) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync DestinationRuleHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle DestinationRuleLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle DestinationRuleLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync DestinationRuleHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync DestinationRuleHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle DestinationRuleLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, 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 `json:"items"` }
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 Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter VirtualServicesGetter DestinationRulesGetter }
type VirtualServiceChangeHandlerFunc ¶
type VirtualServiceChangeHandlerFunc func(obj *v1alpha3.VirtualService) (runtime.Object, error)
type VirtualServiceController ¶
type VirtualServiceController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() VirtualServiceLister AddHandler(ctx context.Context, name string, handler VirtualServiceHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync VirtualServiceHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler VirtualServiceHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler VirtualServiceHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) 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 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) ListNamespaced(namespace string, 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) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync VirtualServiceHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle VirtualServiceLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle VirtualServiceLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync VirtualServiceHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync VirtualServiceHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle VirtualServiceLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, 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 `json:"items"` }
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
}