kube

package
v0.0.0-...-8b80ef8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VolumeSnapshotGroupName is the group name for the VolumeSnapshot CRD
	VolumeSnapshotGroupName = "snapshot.storage.k8s.io"
	// VolumeSnapshotKind is the kind for VolumeSnapshots
	VolumeSnapshotKind = "VolumeSnapshot"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	K8s                   kubernetes.Interface
	Informer              informers.SnapshotGroupInformer
	InformerFactory       externalversions.SharedInformerFactory
	SnapshotClient        dynamic.NamespaceableResourceInterface
	SnapshotGroupClient   snapshotgroupInterface.SnapshotgroupV1Interface
	VolumeSnapshotVersion string
}

Client provides access to k8s resources

func GetClient

func GetClient() *Client

GetClient creates a new Client singleton

func SetFakeClient

func SetFakeClient() *Client

SetFakeClient sets the singleton to a dummy client

Jump to

Keyboard shortcuts

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