backends

package
v0.0.0-...-cc4bf99 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	// Name of the share backend
	Name() string

	// Called during share provision, the result is used in the final PersistentVolume object.
	BuildSource(*BuildSourceArgs) (*v1.PersistentVolumeSource, error)
}

Backend builds PersistentVolumeSource

type BuildSourceArgs

type BuildSourceArgs struct {
	Location string
}

BuildSourceArgs contains arguments

type NFSBackend

type NFSBackend struct {
	Backend
}

NFSBackend for share

func (*NFSBackend) BuildSource

func (b *NFSBackend) BuildSource(args *BuildSourceArgs) (*v1.PersistentVolumeSource, error)

BuildSource builds PersistentVolumeSource for k8s NFS

func (*NFSBackend) Name

func (b *NFSBackend) Name() string

Name of the backend

Jump to

Keyboard shortcuts

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