driver

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

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

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

func SetBuildVersion

func SetBuildVersion(version string)

SetBuildVersion sets the driver version

func SetPodUID

func SetPodUID(poduid string)

SetPodUID sets the POD UID

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"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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