Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Client
- type Gateway
- type GatewayController
- type GatewayHandlerFunc
- type GatewayInterface
- type GatewayLifecycle
- type GatewayList
- type GatewayLister
- type GatewaySpec
- type GatewaysGetter
- type Interface
- type Port
- type Server
- type VirtualService
- type VirtualServiceController
- type VirtualServiceHandlerFunc
- type VirtualServiceInterface
- type VirtualServiceLifecycle
- type VirtualServiceList
- type VirtualServiceLister
- type VirtualServicesGetter
Constants ¶
const ( GroupName = "networking.istio.io" Version = "v1alpha3" )
Variables ¶
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 Kind ¶
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 ¶
func (*Client) Gateways ¶
func (c *Client) Gateways(namespace string) GatewayInterface
func (*Client) VirtualServices ¶
func (c *Client) VirtualServices(namespace string) VirtualServiceInterface
type Gateway ¶
type Gateway struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec GatewaySpec `json:"spec"`
}
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.
type GatewayController ¶
type GatewayController interface {
Informer() cache.SharedIndexInformer
Lister() GatewayLister
AddHandler(name string, handler GatewayHandlerFunc)
AddClusterScopedHandler(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(*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(name string, sync GatewayHandlerFunc)
AddLifecycle(name string, lifecycle GatewayLifecycle)
AddClusterScopedHandler(name, clusterName string, sync GatewayHandlerFunc)
AddClusterScopedLifecycle(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 GatewaySpec ¶
type GatewaySpec struct {
Servers []*Server `json:"servers,omitempty"`
Selector map[string]string `json:"selector,omitempty"`
}
func (*GatewaySpec) DeepCopy ¶
func (in *GatewaySpec) DeepCopy() *GatewaySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec.
func (*GatewaySpec) DeepCopyInto ¶
func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewaysGetter ¶
type GatewaysGetter interface {
Gateways(namespace string) GatewayInterface
}
type Interface ¶
type Interface interface {
RESTClient() rest.Interface
controller.Starter
GatewaysGetter
VirtualServicesGetter
}
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.
type Server ¶
func (*Server) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
type VirtualService ¶
type VirtualService struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
}
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 VirtualServiceController ¶
type VirtualServiceController interface {
Informer() cache.SharedIndexInformer
Lister() VirtualServiceLister
AddHandler(name string, handler VirtualServiceHandlerFunc)
AddClusterScopedHandler(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) error
func NewVirtualServiceLifecycleAdapter ¶
func NewVirtualServiceLifecycleAdapter(name string, clusterScoped bool, client VirtualServiceInterface, l VirtualServiceLifecycle) VirtualServiceHandlerFunc
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(name string, sync VirtualServiceHandlerFunc)
AddLifecycle(name string, lifecycle VirtualServiceLifecycle)
AddClusterScopedHandler(name, clusterName string, sync VirtualServiceHandlerFunc)
AddClusterScopedLifecycle(name, clusterName string, lifecycle VirtualServiceLifecycle)
}
type VirtualServiceLifecycle ¶
type VirtualServiceLifecycle interface {
Create(obj *VirtualService) (*VirtualService, error)
Remove(obj *VirtualService) (*VirtualService, error)
Updated(obj *VirtualService) (*VirtualService, 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_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