Documentation
¶
Index ¶
- Constants
- func CreateShare(client *golangsdk.ServiceClient, volOptions *controller.VolumeOptions) (*shares.Share, error)
- func DeleteShare(client *golangsdk.ServiceClient, shareID string) error
- func GetBackend(name string) (backends.Backend, error)
- func GetShare(client *golangsdk.ServiceClient, shareID string) (*shares.Share, error)
- func GrantAccess(client *golangsdk.ServiceClient, volOptions *controller.VolumeOptions, ...) error
- func InitBackends()
- func InitVPC(cc config.CloudCredentials) string
- func RegisterBackend(b backends.Backend)
- func WaitForShareStatus(client *golangsdk.ServiceClient, shareID string, desiredStatus string, ...) error
- type Provisioner
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 GrantAccess ¶
func GrantAccess(client *golangsdk.ServiceClient, volOptions *controller.VolumeOptions, shareID string, vpcid string) error
GrantAccess in SFS
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.