Documentation
¶
Index ¶
- func FromPodHandlerToHandler(sync PodHandler) generic.Handler
- func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, ...)
- func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, ...)
- func UpdatePodDeepCopyOnChange(client PodClient, obj *v1.Pod, handler func(obj *v1.Pod) (*v1.Pod, error)) (*v1.Pod, error)
- type Interface
- type PodCache
- type PodClient
- type PodController
- type PodGeneratingHandler
- type PodHandler
- type PodIndexer
- type PodStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromPodHandlerToHandler ¶
func FromPodHandlerToHandler(sync PodHandler) generic.Handler
func RegisterPodGeneratingHandler ¶
func RegisterPodGeneratingHandler(ctx context.Context, controller PodController, apply apply.Apply, condition condition.Cond, name string, handler PodGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterPodStatusHandler ¶
func RegisterPodStatusHandler(ctx context.Context, controller PodController, condition condition.Cond, name string, handler PodStatusHandler)
Types ¶
type Interface ¶
type Interface interface {
Pod() PodController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type PodClient ¶
type PodClient interface { Create(*v1.Pod) (*v1.Pod, error) Update(*v1.Pod) (*v1.Pod, error) UpdateStatus(*v1.Pod) (*v1.Pod, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Pod, error) List(namespace string, opts metav1.ListOptions) (*v1.PodList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Pod, err error) }
type PodController ¶
type PodController interface { generic.ControllerMeta PodClient OnChange(ctx context.Context, name string, sync PodHandler) OnRemove(ctx context.Context, name string, sync PodHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() PodCache }
func NewPodController ¶
func NewPodController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) PodController
type PodGeneratingHandler ¶
Click to show internal directories.
Click to hide internal directories.