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
Click to show internal directories.
Click to hide internal directories.