Documentation
¶
Index ¶
- func FromAPIServiceHandlerToHandler(sync APIServiceHandler) generic.Handler
- func RegisterAPIServiceGeneratingHandler(ctx context.Context, controller APIServiceController, apply apply.Apply, ...)
- func RegisterAPIServiceStatusHandler(ctx context.Context, controller APIServiceController, condition condition.Cond, ...)
- func UpdateAPIServiceDeepCopyOnChange(client APIServiceClient, obj *v1.APIService, ...) (*v1.APIService, error)
- type APIServiceCache
- type APIServiceClient
- type APIServiceController
- type APIServiceGeneratingHandler
- type APIServiceHandler
- type APIServiceIndexer
- type APIServiceStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAPIServiceHandlerToHandler ¶
func FromAPIServiceHandlerToHandler(sync APIServiceHandler) generic.Handler
func RegisterAPIServiceGeneratingHandler ¶
func RegisterAPIServiceGeneratingHandler(ctx context.Context, controller APIServiceController, apply apply.Apply, condition condition.Cond, name string, handler APIServiceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterAPIServiceStatusHandler ¶
func RegisterAPIServiceStatusHandler(ctx context.Context, controller APIServiceController, condition condition.Cond, name string, handler APIServiceStatusHandler)
func UpdateAPIServiceDeepCopyOnChange ¶
func UpdateAPIServiceDeepCopyOnChange(client APIServiceClient, obj *v1.APIService, handler func(obj *v1.APIService) (*v1.APIService, error)) (*v1.APIService, error)
Types ¶
type APIServiceCache ¶
type APIServiceCache interface {
Get(name string) (*v1.APIService, error)
List(selector labels.Selector) ([]*v1.APIService, error)
AddIndexer(indexName string, indexer APIServiceIndexer)
GetByIndex(indexName, key string) ([]*v1.APIService, error)
}
type APIServiceClient ¶
type APIServiceClient interface {
Create(*v1.APIService) (*v1.APIService, error)
Update(*v1.APIService) (*v1.APIService, error)
UpdateStatus(*v1.APIService) (*v1.APIService, error)
Delete(name string, options *metav1.DeleteOptions) error
Get(name string, options metav1.GetOptions) (*v1.APIService, error)
List(opts metav1.ListOptions) (*v1.APIServiceList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.APIService, err error)
}
type APIServiceController ¶
type APIServiceController interface {
generic.ControllerMeta
APIServiceClient
OnChange(ctx context.Context, name string, sync APIServiceHandler)
OnRemove(ctx context.Context, name string, sync APIServiceHandler)
Enqueue(name string)
EnqueueAfter(name string, duration time.Duration)
Cache() APIServiceCache
}
func NewAPIServiceController ¶
func NewAPIServiceController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.APIServicesGetter, informer informers.APIServiceInformer) APIServiceController
type APIServiceGeneratingHandler ¶
type APIServiceGeneratingHandler func(obj *v1.APIService, status v1.APIServiceStatus) ([]runtime.Object, v1.APIServiceStatus, error)
type APIServiceHandler ¶
type APIServiceHandler func(string, *v1.APIService) (*v1.APIService, error)
type APIServiceIndexer ¶
type APIServiceIndexer func(obj *v1.APIService) ([]string, error)
type APIServiceStatusHandler ¶
type APIServiceStatusHandler func(obj *v1.APIService, status v1.APIServiceStatus) (v1.APIServiceStatus, error)
type Interface ¶
type Interface interface {
APIService() APIServiceController
}
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.ApiregistrationV1Interface, informers informers.Interface) Interface
Click to show internal directories.
Click to hide internal directories.