v1

package
v0.0.0-...-67f6199 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action func(pvc *core.PersistentVolumeClaim) error

type Filter

type Filter func(pvc *core.PersistentVolumeClaim) bool

func FilterPersistentVolumeClaimsByLabels

func FilterPersistentVolumeClaimsByLabels(labels map[string]string) Filter

type Inspector

type Inspector interface {
	gvk.GVK

	ListSimple() []*core.PersistentVolumeClaim
	GetSimple(name string) (*core.PersistentVolumeClaim, bool)
	Iterate(action Action, filters ...Filter) error
	Read() ReadInterface
}

type Interface

type Interface interface {
	ModInterface
	ReadInterface
}

Interface has methods to work with PersistentVolumeClaim resources.

type ModInterface

type ModInterface interface {
	Create(ctx context.Context, persistentvolumeclaim *core.PersistentVolumeClaim, opts meta.CreateOptions) (*core.PersistentVolumeClaim, error)
	Update(ctx context.Context, persistentvolumeclaim *core.PersistentVolumeClaim, opts meta.UpdateOptions) (*core.PersistentVolumeClaim, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts meta.PatchOptions, subresources ...string) (result *core.PersistentVolumeClaim, err error)
	Delete(ctx context.Context, name string, opts meta.DeleteOptions) error
}

ModInterface has methods to work with PersistentVolumeClaim resources only for creation

type ReadInterface

type ReadInterface interface {
	Get(ctx context.Context, name string, opts meta.GetOptions) (*core.PersistentVolumeClaim, error)
}

ReadInterface has methods to work with PersistentVolumeClaim resources with ReadOnly mode.

Jump to

Keyboard shortcuts

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