driver

package
v0.0.0-...-10602be Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilerUsernameKey = "username"
	FilerPasswordKey = "password"
)

constants of keys in secrets

View Source
const (
	// Hostname or IP address of the Ctera Filer
	FilerAddressKey = "fileraddress"
	// Path on the Ctera Filer to share
	PathKey = "path"

	// KmsKeyId represents key for KMS encryption key
	KmsKeyIDKey = "kmskeyid"
)

constants of keys in volume parameters

View Source
const (
	DefaultCSIEndpoint = "unix://tmp/csi.sock"
)

constants for default command line flag values

Variables

This section is empty.

Functions

func GetVersionJSON

func GetVersionJSON() (string, error)

func WithEndpoint

func WithEndpoint(endpoint string) func(*Options)

func WithKubeFilerLockerConfigMapName

func WithKubeFilerLockerConfigMapName(kubeFilerLockerConfigMapName string) func(*Options)

func WithKubeFilerOperatorNameSpace

func WithKubeFilerOperatorNameSpace(kubeFilerOperatorNameSpace string) func(*Options)

func WithMode

func WithMode(mode Mode) func(*Options)

func WithNodeIP

func WithNodeIP(nodeIP string) func(*Options)

Types

type CteraClient

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

func GetAuthenticatedCteraClient

func GetAuthenticatedCteraClient(ctx context.Context, filerAddress, username, password string) (*CteraClient, error)

func NewCteraClient

func NewCteraClient(filerAddress string) (*CteraClient, error)

func (*CteraClient) AddTrustedNfsClient

func (c *CteraClient) AddTrustedNfsClient(shareName, address, netmask string, perm ctera.FileAccessMode) error

func (*CteraClient) Authenticate

func (c *CteraClient) Authenticate(ctx context.Context, username, password string) error

func (*CteraClient) CreateShare

func (c *CteraClient) CreateShare(name, path string) (*ctera.Share, error)

func (*CteraClient) DeleteShareSafe

func (c *CteraClient) DeleteShareSafe(name string) error

func (*CteraClient) GetShareSafe

func (c *CteraClient) GetShareSafe(name string) (*ctera.Share, error)

func (*CteraClient) RemoveTrustedNfsClient

func (c *CteraClient) RemoveTrustedNfsClient(shareName, address, netmask string) error

type CteraClientError

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

func (CteraClientError) Error

func (e CteraClientError) Error() string

Error returns non-empty string if there was an error.

type Driver

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

func NewDriver

func NewDriver(options ...func(*Options)) (*Driver, error)

func (*Driver) ControllerExpandVolume

func (d *Driver) ControllerExpandVolume(ctx context.Context, req *csi.ControllerExpandVolumeRequest) (*csi.ControllerExpandVolumeResponse, error)

func (*Driver) ControllerGetCapabilities

func (d *Driver) ControllerGetCapabilities(ctx context.Context, req *csi.ControllerGetCapabilitiesRequest) (*csi.ControllerGetCapabilitiesResponse, error)

func (*Driver) ControllerGetVolume

func (d *Driver) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error)

func (*Driver) ControllerPublishVolume

func (d *Driver) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.ControllerPublishVolumeResponse, error)

func (*Driver) ControllerUnpublishVolume

func (d *Driver) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.ControllerUnpublishVolumeResponse, error)

func (*Driver) CreateSnapshot

func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error)

func (*Driver) CreateVolume

func (d *Driver) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error)

func (*Driver) DeleteSnapshot

func (d *Driver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error)

func (*Driver) DeleteVolume

func (d *Driver) DeleteVolume(ctx context.Context, req *csi.DeleteVolumeRequest) (*csi.DeleteVolumeResponse, error)

func (*Driver) GetCapacity

func (d *Driver) GetCapacity(ctx context.Context, req *csi.GetCapacityRequest) (*csi.GetCapacityResponse, error)

func (*Driver) GetPluginInfo

func (d *Driver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error)

func (*Driver) ListSnapshots

func (d *Driver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error)

func (*Driver) ListVolumes

func (d *Driver) ListVolumes(ctx context.Context, req *csi.ListVolumesRequest) (*csi.ListVolumesResponse, error)

func (*Driver) NodeExpandVolume

func (ns *Driver) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandVolumeRequest) (*csi.NodeExpandVolumeResponse, error)

func (*Driver) NodeGetCapabilities

func (ns *Driver) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error)

func (*Driver) NodeGetInfo

func (ns *Driver) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error)

func (*Driver) NodeGetVolumeStats

func (ns *Driver) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVolumeStatsRequest) (*csi.NodeGetVolumeStatsResponse, error)

func (*Driver) NodePublishVolume

func (ns *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error)

func (*Driver) NodeStageVolume

func (ns *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error)

func (*Driver) NodeUnpublishVolume

func (ns *Driver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error)

func (*Driver) NodeUnstageVolume

func (ns *Driver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error)

func (*Driver) Probe

func (d *Driver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error)

func (*Driver) Run

func (d *Driver) Run() error

func (*Driver) Stop

func (d *Driver) Stop()

func (*Driver) ValidateVolumeCapabilities

func (d *Driver) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.ValidateVolumeCapabilitiesResponse, error)

type KubeFilerVolumeID

type KubeFilerVolumeID struct {
	ID                  string `json:"id"`
	Namespace           string `json:"namespace"`
	KubeFilerExportName string `json:"kubefiler_export_name"`
}

func NewKubeFilerVolumeID

func NewKubeFilerVolumeID(namespace, kubeFilerExportName string) *KubeFilerVolumeID

func (*KubeFilerVolumeID) ToVolumeID

func (c *KubeFilerVolumeID) ToVolumeID() (*string, error)

type Mode

type Mode string

Mode is the operating mode of the CSI driver.

const (
	// ControllerMode is the mode that only starts the controller service.
	ControllerMode Mode = "controller"
	// NodeMode is the mode that only starts the node service.
	NodeMode Mode = "node"
	// AllMode is the mode that only starts both the controller and the node service.
	AllMode Mode = "all"
)

type Options

type Options struct {
	KubeFilerOperatorNameSpace   string
	KubeFilerLockerConfigMapName string
	// contains filtered or unexported fields
}

type VersionInfo

type VersionInfo struct {
	DriverVersion string `json:"driverVersion"`
	GitCommit     string `json:"gitCommit"`
	BuildDate     string `json:"buildDate"`
	GoVersion     string `json:"goVersion"`
	Compiler      string `json:"compiler"`
	Platform      string `json:"platform"`
}

func GetVersion

func GetVersion() VersionInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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