Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func NewAPIService(namespace, name string, obj v1.APIService) *v1.APIService
- func Resource(resource string) schema.GroupResource
- type APIServiceChangeHandlerFunc
- type APIServiceController
- type APIServiceHandlerFunc
- type APIServiceInterface
- type APIServiceLifecycle
- type APIServiceList
- type APIServiceLister
- type APIServicesGetter
- type Client
- type Interface
Constants ¶
View Source
const ( GroupName = "apiregistration.k8s.io" Version = "v1" )
Variables ¶
View Source
var ( APIServiceGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "APIService", } APIServiceResource = metav1.APIResource{ Name: "apiservices", SingularName: "apiservice", Namespaced: false, Kind: APIServiceGroupVersionKind.Kind, } APIServiceGroupVersionResource = schema.GroupVersionResource{ Group: GroupName, Version: Version, Resource: "apiservices", } )
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewAPIService ¶
func NewAPIService(namespace, name string, obj v1.APIService) *v1.APIService
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type APIServiceChangeHandlerFunc ¶
type APIServiceChangeHandlerFunc func(obj *v1.APIService) (runtime.Object, error)
type APIServiceController ¶
type APIServiceController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() APIServiceLister AddHandler(ctx context.Context, name string, handler APIServiceHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync APIServiceHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler APIServiceHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, handler APIServiceHandlerFunc) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, after time.Duration) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type APIServiceHandlerFunc ¶
func NewAPIServiceLifecycleAdapter ¶
func NewAPIServiceLifecycleAdapter(name string, clusterScoped bool, client APIServiceInterface, l APIServiceLifecycle) APIServiceHandlerFunc
type APIServiceInterface ¶
type APIServiceInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.APIService) (*v1.APIService, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.APIService, error) Get(name string, opts metav1.GetOptions) (*v1.APIService, error) Update(*v1.APIService) (*v1.APIService, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*APIServiceList, error) ListNamespaced(namespace string, opts metav1.ListOptions) (*APIServiceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() APIServiceController AddHandler(ctx context.Context, name string, sync APIServiceHandlerFunc) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync APIServiceHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle APIServiceLifecycle) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle APIServiceLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync APIServiceHandlerFunc) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name, clusterName string, sync APIServiceHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle APIServiceLifecycle) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name, clusterName string, lifecycle APIServiceLifecycle) }
type APIServiceLifecycle ¶
type APIServiceLifecycle interface { Create(obj *v1.APIService) (runtime.Object, error) Remove(obj *v1.APIService) (runtime.Object, error) Updated(obj *v1.APIService) (runtime.Object, error) }
type APIServiceList ¶
type APIServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.APIService `json:"items"` }
func (*APIServiceList) DeepCopy ¶
func (in *APIServiceList) DeepCopy() *APIServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIServiceList.
func (*APIServiceList) DeepCopyInto ¶
func (in *APIServiceList) DeepCopyInto(out *APIServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIServiceList) DeepCopyObject ¶
func (in *APIServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type APIServiceLister ¶
type APIServiceLister interface { List(namespace string, selector labels.Selector) (ret []*v1.APIService, err error) Get(namespace, name string) (*v1.APIService, error) }
type APIServicesGetter ¶
type APIServicesGetter interface {
APIServices(namespace string) APIServiceInterface
}
type Client ¶
func (*Client) APIServices ¶
func (c *Client) APIServices(namespace string) APIServiceInterface
func (*Client) RESTClient ¶
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter APIServicesGetter }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.