Version: v0.0.0-...-e4a3801 Latest Latest

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0




View Source
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"
	// 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"


This section is empty.


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

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

func (*S3fsPlugin) Mount

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

func (*S3fsPlugin) Unmount

Unmount methods unmounts the volume/ fileset from the pod

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

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