v1

package
v1.2.2-rc3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 21 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)

RegisterVolumeAttachmentGeneratingHandler configures a VolumeAttachmentController to execute a VolumeAttachmentGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterVolumeAttachmentStatusHandler

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

RegisterVolumeAttachmentStatusHandler configures a VolumeAttachmentController to execute a VolumeAttachmentStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

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)

VolumeAttachmentGeneratingHandler is the top-level handler that is executed for every VolumeAttachment event. It extends VolumeAttachmentStatusHandler by a returning a slice of child objects to be passed to apply.Apply

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)

VolumeAttachmentStatusHandler is executed for every added or modified VolumeAttachment. Should return the new status to be updated

Jump to

Keyboard shortcuts

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