Documentation
¶
Index ¶
Constants ¶
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" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
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:"kubernetes.io/fsGroup,omitempty"` FSGroupNew string `json:"kubernetes.io/mounterArgs.FsGroup,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:"kubernetes.io/secret/access-key,omitempty"` SecretKeyB64 string `json:"kubernetes.io/secret/secret-key,omitempty"` APIKeyB64 string `json:"kubernetes.io/secret/api-key,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:"kubernetes.io/secret/service-instance-id,omitempty"` CAbundleB64 string `json:"kubernetes.io/secret/ca-bundle-crt,omitempty"` CosServiceIP string `json:"service-ip,omitempty"` AutoCache bool `json:"auto_cache,string,omitempty"` AddMountParam string `json:"add-mount-param,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
Click to show internal directories.
Click to hide internal directories.