objects

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Create(nodeName string, eventReason string) *corev1.Event
	FindByReason(ctx context.Context, client client.Client, reason string) *corev1.Event
	DeleteAll(ctx context.Context, client client.Client)
}

func NewEvent

func NewEvent() Event

type Node

type Node interface {
	Create() *corev1.Node
}

func NewNode

func NewNode() Node

type PV

type PV interface {
	Create(pvName, nodeName, storageClassName string) *corev1.PersistentVolume
	DeleteAll(ctx context.Context, client client.Client)
}

func NewPV

func NewPV() PV

type PVC

type PVC interface {
	Create(name, pvName string, storageClassName string, annotations map[string]string) *corev1.PersistentVolumeClaim
	DeleteAll(ctx context.Context, client client.Client)
	RemoveProtectionFinalizer(ctx context.Context, client client.Client, pvc *corev1.PersistentVolumeClaim, finalizerName string) error
}

func NewPVC

func NewPVC() PVC

type Utils

type Utils interface {
	PersistentVolumeClaim() PVC
	PersistentVolume() PV
	Event() Event
}

func Helper

func Helper() Utils

Jump to

Keyboard shortcuts

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