v1

package
v1.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromVolumeAttachmentHandlerToHandler

func FromVolumeAttachmentHandlerToHandler(sync VolumeAttachmentHandler) generic.Handler

func RegisterVolumeAttachmentGeneratingHandler

func RegisterVolumeAttachmentGeneratingHandler(ctx context.Context, controller VolumeAttachmentController, apply apply.Apply,
	condition condition.Cond, name string, handler VolumeAttachmentGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterVolumeAttachmentStatusHandler

func RegisterVolumeAttachmentStatusHandler(ctx context.Context, controller VolumeAttachmentController, condition condition.Cond, name string, handler VolumeAttachmentStatusHandler)

func UpdateVolumeAttachmentDeepCopyOnChange

func UpdateVolumeAttachmentDeepCopyOnChange(client VolumeAttachmentClient, obj *v1.VolumeAttachment, handler func(obj *v1.VolumeAttachment) (*v1.VolumeAttachment, error)) (*v1.VolumeAttachment, error)

Types

type Interface

type Interface interface {
	VolumeAttachment() VolumeAttachmentController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type VolumeAttachmentCache

type VolumeAttachmentCache interface {
	Get(name string) (*v1.VolumeAttachment, error)
	List(selector labels.Selector) ([]*v1.VolumeAttachment, error)

	AddIndexer(indexName string, indexer VolumeAttachmentIndexer)
	GetByIndex(indexName, key string) ([]*v1.VolumeAttachment, error)
}

type VolumeAttachmentClient

type VolumeAttachmentClient interface {
	Create(*v1.VolumeAttachment) (*v1.VolumeAttachment, error)
	Update(*v1.VolumeAttachment) (*v1.VolumeAttachment, error)
	UpdateStatus(*v1.VolumeAttachment) (*v1.VolumeAttachment, error)
	Delete(name string, options *metav1.DeleteOptions) error
	Get(name string, options metav1.GetOptions) (*v1.VolumeAttachment, error)
	List(opts metav1.ListOptions) (*v1.VolumeAttachmentList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VolumeAttachment, err error)
}

type VolumeAttachmentController

type VolumeAttachmentController interface {
	generic.ControllerMeta
	VolumeAttachmentClient

	OnChange(ctx context.Context, name string, sync VolumeAttachmentHandler)
	OnRemove(ctx context.Context, name string, sync VolumeAttachmentHandler)
	Enqueue(name string)
	EnqueueAfter(name string, duration time.Duration)

	Cache() VolumeAttachmentCache
}

func NewVolumeAttachmentController

func NewVolumeAttachmentController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VolumeAttachmentController

type VolumeAttachmentGeneratingHandler

type VolumeAttachmentGeneratingHandler func(obj *v1.VolumeAttachment, status v1.VolumeAttachmentStatus) ([]runtime.Object, v1.VolumeAttachmentStatus, error)

type VolumeAttachmentHandler

type VolumeAttachmentHandler func(string, *v1.VolumeAttachment) (*v1.VolumeAttachment, error)

type VolumeAttachmentIndexer

type VolumeAttachmentIndexer func(obj *v1.VolumeAttachment) ([]string, error)

type VolumeAttachmentStatusHandler

type VolumeAttachmentStatusHandler func(obj *v1.VolumeAttachment, status v1.VolumeAttachmentStatus) (v1.VolumeAttachmentStatus, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL