shareadapters

package
v1.24.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cephfs

type Cephfs struct{}

func (Cephfs) BuildNodePublishSecret

func (Cephfs) BuildNodePublishSecret(args *SecretArgs) (secret map[string]string, err error)

func (Cephfs) BuildNodeStageSecret

func (Cephfs) BuildNodeStageSecret(args *SecretArgs) (secret map[string]string, err error)

func (Cephfs) BuildVolumeContext

func (Cephfs) BuildVolumeContext(args *VolumeContextArgs) (volumeContext map[string]string, err error)

func (Cephfs) GetOrGrantAccess

func (Cephfs) GetOrGrantAccess(args *GrantAccessArgs) (accessRight *shares.AccessRight, err error)

type GrantAccessArgs

type GrantAccessArgs struct {
	ManilaClient manilaclient.Interface
	Share        *shares.Share
	Options      *options.ControllerVolumeContext
}

type NFS

type NFS struct{}

func (NFS) BuildNodePublishSecret

func (NFS) BuildNodePublishSecret(args *SecretArgs) (secret map[string]string, err error)

func (NFS) BuildNodeStageSecret

func (NFS) BuildNodeStageSecret(args *SecretArgs) (secret map[string]string, err error)

func (NFS) BuildVolumeContext

func (NFS) BuildVolumeContext(args *VolumeContextArgs) (volumeContext map[string]string, err error)

func (NFS) GetOrGrantAccess

func (NFS) GetOrGrantAccess(args *GrantAccessArgs) (*shares.AccessRight, error)

type SecretArgs

type SecretArgs struct {
	AccessRight *shares.AccessRight
}

type ShareAdapter

type ShareAdapter interface {
	// GetOrGrantAccess first tries to retrieve an access right for args.Share.
	// An access right is created for the share in case it doesn't exist yet.
	// Returns an existing or new access right for args.Share.
	GetOrGrantAccess(args *GrantAccessArgs) (accessRight *shares.AccessRight, err error)

	// BuildVolumeContext builds a volume context map that's passed to NodeStageVolumeRequest and NodePublishVolumeRequest
	BuildVolumeContext(args *VolumeContextArgs) (volumeContext map[string]string, err error)

	// Builds secret map for NodeStageVolumeRequest
	BuildNodeStageSecret(args *SecretArgs) (secret map[string]string, err error)

	// Builds secret map for NodePublishVolumeRequest
	BuildNodePublishSecret(args *SecretArgs) (secret map[string]string, err error)
}

type VolumeContextArgs

type VolumeContextArgs struct {
	// Share adapters are responsible for choosing
	// an export location when building a volume context.
	Locations []shares.ExportLocation

	Options *options.NodeVolumeContext
}

Jump to

Keyboard shortcuts

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