converter

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriveHandlerPath  = "/convertdrive"
	VolumeHandlerPath = "/convertvolume"
)

Variables

View Source
var (
	ErrCRDKindNotSupported = errors.New("Unsupported CRD Kind")
)

Functions

func LivenessCheckHandler

func LivenessCheckHandler(w http.ResponseWriter, r *http.Request)

LivenessCheckHandler - Checks if the process is up. Always returns success.

func Migrate

func Migrate(convertedObject *unstructured.Unstructured, toVersion string) error

func ServeConversionWebhook

func ServeConversionWebhook(ctx context.Context) error

func ServeDriveConversion

func ServeDriveConversion(w http.ResponseWriter, r *http.Request)

func ServeVolumeConversion

func ServeVolumeConversion(w http.ResponseWriter, r *http.Request)

Types

type CRDKind

type CRDKind string
const (
	DriveCRDKind  CRDKind = "DirectCSIDrive"
	VolumeCRDKind CRDKind = "DirectCSIVolume"
)

Jump to

Keyboard shortcuts

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