driver

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Keys for PV and PVC parameters as reported by external-provisioner.
	ParameterKeyPVCName      = "csi.storage.k8s.io/pvc/name"
	ParameterKeyPVCNamespace = "csi.storage.k8s.io/pvc/namespace"
	ParameterKeyPVName       = "csi.storage.k8s.io/pv/name"

	// User provided labels.
	ParameterKeyLabels = "labels"
)

CreateVolume parameters.

View Source
const (
	VolumeContextKeyServiceAccountName = "csi.storage.k8s.io/serviceAccount.name"
	//nolint:gosec
	VolumeContextKeyServiceAccountToken = "csi.storage.k8s.io/serviceAccount.tokens"
	VolumeContextKeyPodName             = "csi.storage.k8s.io/pod.name"
	VolumeContextKeyPodNamespace        = "csi.storage.k8s.io/pod.namespace"
	VolumeContextKeyEphemeral           = "csi.storage.k8s.io/ephemeral"
	VolumeContextKeyBucketName          = "bucketName"

	UmountTimeout = time.Second * 5

	FuseMountType = "fuse"
	TrueStr       = "true"
	FalseStr      = "false"
)

NodePublishVolume VolumeContext parameters.

View Source
const (
	CreateVolumeCSIFullMethod      = "/csi.v1.Controller/CreateVolume"
	DeleteVolumeCSIFullMethod      = "/csi.v1.Controller/DeleteVolume"
	NodePublishVolumeCSIFullMethod = "/csi.v1.Node/NodePublishVolume"

	VolumeContextKeyMountOptions              = "mountOptions"
	VolumeContextKeyFileCacheCapacity         = "fileCacheCapacity"
	VolumeContextKeyFileCacheForRangeRead     = "fileCacheForRangeRead"
	VolumeContextKeyMetadataStatCacheCapacity = "metadataStatCacheCapacity"
	VolumeContextKeyMetadataTypeCacheCapacity = "metadataTypeCacheCapacity"
	VolumeContextKeyMetadataCacheTTLSeconds   = "metadataCacheTTLSeconds"
	VolumeContextKeyGcsfuseLoggingSeverity    = "gcsfuseLoggingSeverity"
)
View Source
const DefaultName = "gcsfuse.csi.storage.gke.io"
View Source
const (
	MinimumVolumeSizeInBytes int64 = 1 * util.Mb
)

Variables

This section is empty.

Functions

Types

type GCSDriver

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

func NewGCSDriver

func NewGCSDriver(config *GCSDriverConfig) (*GCSDriver, error)

func (*GCSDriver) Run

func (driver *GCSDriver) Run(endpoint string)

func (*GCSDriver) ValidateControllerServiceRequest

func (driver *GCSDriver) ValidateControllerServiceRequest(c csi.ControllerServiceCapability_RPC_Type) error

type GCSDriverConfig

type GCSDriverConfig struct {
	Name                  string // Driver name
	Version               string // Driver version
	NodeID                string // Node name
	RunController         bool   // Run CSI controller service
	RunNode               bool   // Run CSI node service
	StorageServiceManager storage.ServiceManager
	TokenManager          auth.TokenManager
	Mounter               mount.Interface
	K8sClients            clientset.Interface
}

type NonBlockingGRPCServer

type NonBlockingGRPCServer interface {
	// Start services at the endpoint
	Start(endpoint string, ids csi.IdentityServer, cs csi.ControllerServer, ns csi.NodeServer)
	// Waits for the service to stop
	Wait()
	// Stops the service gracefully
	Stop()
	// Stops the service forcefully
	ForceStop()
}

Defines Non blocking GRPC server interfaces.

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() NonBlockingGRPCServer

Jump to

Keyboard shortcuts

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