v1alpha3

package
Version: v0.0.0-...-40227b4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 17 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 (
	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 NewDestinationRule

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

func NewGateway

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

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

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) 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

	VirtualService  VirtualServiceClient
	Gateway         GatewayClient
	DestinationRule DestinationRuleClient
}

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 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 GatewayChangeHandlerFunc

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

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 GatewayClientCache interface {
	Get(namespace, name string) (*v1alpha3.Gateway, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha3.Gateway, error)

	Index(name string, indexer GatewayIndexer)
	GetIndexed(name, key string) ([]*v1alpha3.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 *v1alpha3.Gateway) (runtime.Object, error)

func NewGatewayLifecycleAdapter

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

type GatewayIndexer

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

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 GatewayLifecycle interface {
	Create(obj *v1alpha3.Gateway) (runtime.Object, error)
	Remove(obj *v1alpha3.Gateway) (runtime.Object, error)
	Updated(obj *v1alpha3.Gateway) (runtime.Object, error)
}

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 GatewayLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1alpha3.Gateway, err error)
	Get(namespace, name string) (*v1alpha3.Gateway, error)
}

type GatewaysGetter

type GatewaysGetter interface {
	Gateways(namespace string) GatewayInterface
}

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

func NewForConfig(config rest.Config) (Interface, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL