storageprovisioner

package
v0.10.3 Latest Latest
Warning

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

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

Documentation

Overview

Package storageprovisioner implements the provisioner for the liqo virtual storage class.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLiqoLocalStorageProvisioner

func NewLiqoLocalStorageProvisioner(ctx context.Context, cl client.Client,
	virtualStorageClassName, storageNamespace, localRealStorageClass string) (controller.Provisioner, error)

NewLiqoLocalStorageProvisioner creates a new liqoLocalStorageProvisioner provisioner.

func ProvisionRemotePVC

func ProvisionRemotePVC(ctx context.Context,
	options controller.ProvisionOptions,
	remoteNamespace, remoteRealStorageClass string,
	remotePvcLister corev1listers.PersistentVolumeClaimNamespaceLister,
	remotePvcClient corev1clients.PersistentVolumeClaimInterface,
	forgingOpts *forge.ForgingOpts) (*corev1.PersistentVolume, controller.ProvisioningState, error)

ProvisionRemotePVC ensures the existence of a remote PVC and returns a virtual PV for that remote storage device.

Types

type StorageControllerRunnable

type StorageControllerRunnable struct {
	Ctrl *controller.ProvisionController
}

StorageControllerRunnable wraps the storage ProvisionController to implement the Runnable interface.

func (StorageControllerRunnable) Start

Start starts the runnable and make it run until the context is open.

Jump to

Keyboard shortcuts

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