sfs

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: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SFSStatusAvailable = "available"
	SFSAnnotationID    = "external.k8s.io/sfs-id"

	SFSParametersAvailability    = "availability"
	SFSParametersVPCID           = "vpcid"
	SFSParametersProtocol        = "protocol"
	SFSParametersProtocolDefault = "NFS"
	SFSParametersType            = "type"
)

Defines constants

Variables

This section is empty.

Functions

func CreateShare

func CreateShare(client *golangsdk.ServiceClient, volOptions *controller.VolumeOptions) (*shares.Share, error)

CreateShare in SFS

func DeleteShare

func DeleteShare(client *golangsdk.ServiceClient, shareID string) error

DeleteShare in SFS

func GetBackend

func GetBackend(name string) (backends.Backend, error)

GetBackend by name

func GetShare

func GetShare(client *golangsdk.ServiceClient, shareID string) (*shares.Share, error)

GetShare in SFS

func GrantAccess

func GrantAccess(client *golangsdk.ServiceClient, volOptions *controller.VolumeOptions, shareID string, vpcid string) error

GrantAccess in SFS

func InitBackends

func InitBackends()

InitBackends for share

func InitVPC

func InitVPC(cc config.CloudCredentials) string

InitVPC for share

func RegisterBackend

func RegisterBackend(b backends.Backend)

RegisterBackend for share

func WaitForShareStatus

func WaitForShareStatus(client *golangsdk.ServiceClient, shareID string, desiredStatus string, timeout int) error

WaitForShareStatus wait for share desired status until timeout

Types

type Provisioner

type Provisioner struct {
	// contains filtered or unexported fields
}

Provisioner implements controller.Provisioner interface

func NewProvisioner

func NewProvisioner(c clientset.Interface, cc config.CloudCredentials, timeout int, vpcid string) *Provisioner

NewProvisioner creates a new instance of sfs provisioner

func (*Provisioner) Delete

func (p *Provisioner) Delete(pv *v1.PersistentVolume) error

Delete a share from sfs

func (*Provisioner) Provision

func (p *Provisioner) Provision(volOptions controller.VolumeOptions) (*v1.PersistentVolume, error)

Provision a share in sfs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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