Back to

Package driver

Latest Go to latest

The latest major version is .

Published: Aug 24, 2020 | License: Apache-2.0 | Module:



const (

	// SecretAccessKey is the key name for the AWS Access Key
	SecretAccessKey = "access-key"
	// SecretSecretKey is the key name for the AWS Secret Key
	SecretSecretKey = "secret-key"
	// SecretAPIKey is the key name for the IBM API Key (IAM Authentication)
	SecretAPIKey = "api-key"
	// SecretAllowedNS is the key name for the Allowed Namespace
	SecretAllowedNS = "allowed_ns"
	// AllowedIPs is the list of IPs/CIDRs allowed for accessing the COS bucket.
	ResConfApiKey = "res-conf-apikey"
	// SecretServiceInstanceID is the key name for the service instance ID (IAM Authentication)
	SecretServiceInstanceID = "service-instance-id"

	// CrtBundle is the base64 encoded crt bundle
	CrtBundle = "ca-bundle-crt"

func SetBuildVersion

func SetBuildVersion(version string)

SetBuildVersion sets the driver version

func SetPodUID

func SetPodUID(poduid string)

SetPodUID sets the POD UID

type Options

type Options struct {
	ChunkSizeMB             int    `json:"chunk-size-mb,string"`
	ParallelCount           int    `json:"parallel-count,string"`
	MultiReqMax             int    `json:"multireq-max,string"`
	StatCacheSize           int    `json:"stat-cache-size,string"`
	FSGroup                 string `json:",omitempty"`
	FSGroupNew              string `json:",omitempty"`
	Endpoint                string `json:"endpoint,omitempty"` //Will be deprecated
	Region                  string `json:"region,omitempty"`   //Will be deprecated
	Bucket                  string `json:"bucket"`
	ObjectPath              string `json:"object-path,omitempty"`
	DebugLevel              string `json:"debug-level"`
	CurlDebug               bool   `json:"curl-debug,string"`
	KernelCache             bool   `json:"kernel-cache,string,omitempty"`
	TLSCipherSuite          string `json:"tls-cipher-suite,omitempty"`
	S3FSFUSERetryCount      string `json:"s3fs-fuse-retry-count,omitempty"`
	StatCacheExpireSeconds  string `json:"stat-cache-expire-seconds,omitempty"`
	AccessKeyB64            string `json:",omitempty"`
	SecretKeyB64            string `json:",omitempty"`
	APIKeyB64               string `json:",omitempty"`
	OSEndpoint              string `json:"object-store-endpoint,omitempty"`
	OSStorageClass          string `json:"object-store-storage-class,omitempty"`
	IAMEndpoint             string `json:"iam-endpoint,omitempty"`
	ConnectTimeoutSeconds   string `json:"connect-timeout,omitempty"`
	ReadwriteTimeoutSeconds string `json:"readwrite-timeout,omitempty"`
	UseXattr                bool   `json:"use-xattr,string,omitempty"`
	AccessMode              string `json:"access-mode,omitempty"`
	ServiceInstanceIDB64    string `json:",omitempty"`
	CAbundleB64             string `json:",omitempty"`
	CosServiceIP            string `json:"service-ip,omitempty"`
	AutoCache               bool   `json:"auto_cache,string,omitempty"`

Options are the FlexVolume driver options

type S3fsPlugin

type S3fsPlugin struct {
	Backend backend.ObjectStorageSessionFactory
	Logger  *zap.Logger

S3fsPlugin supports mount & unmount requests of s3fs volumes

func (*S3fsPlugin) Init

func (p *S3fsPlugin) Init() interfaces.FlexVolumeResponse

Init method is to initialize the flexvolume, it is a no op right now

func (*S3fsPlugin) Mount

func (p *S3fsPlugin) Mount(mountRequest interfaces.FlexVolumeMountRequest) interfaces.FlexVolumeResponse

Mount method allows to mount the volume/fileset to a given location for a pod

func (*S3fsPlugin) Unmount

func (p *S3fsPlugin) Unmount(unmountRequest interfaces.FlexVolumeUnmountRequest) interfaces.FlexVolumeResponse

Unmount methods unmounts the volume/ fileset from the pod

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier