classsyncer

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AnnSnapshotClassDefault = "snapshot.storage.kubernetes.io/is-default-class"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	SnapshotClassByProvider(provider string) (*snapshotapi.VolumeSnapshotClass, error)
	SnapshotClassByVolume(volume kahuapi.ResourceReference) (*snapshotapi.VolumeSnapshotClass, error)
}

SnapshotClassSync syncs with server and make decision on SnapshotClass for the volume

func NewSnapshotClassSync

func NewSnapshotClassSync(ctx context.Context,
	restConfig *rest.Config,
	kubeClient kubernetes.Interface) (Interface, error)

Jump to

Keyboard shortcuts

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