oss

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OssfsCredentialFile is the path of oss ak credential file
	OssfsCredentialFile = "/host/etc/passwd-ossfs"
	// AkID is Ak ID
	AkID = "akId"
	// AkSecret is Ak Secret
	AkSecret = "akSecret"
	// OssFsType is the oss filesystem type
	OssFsType = "ossfs"
	// JindoFsType tag
	JindoFsType = "jindofs"
)
View Source
const (
	EncryptedTypeKms    = "kms"
	EncryptedTypeAes256 = "aes256"
)
View Source
const (
	// MetadataURL is metadata url
	MetadataURL = "http://100.100.100.200/latest/meta-data/"
	// InstanceID is instance ID
	InstanceID = "instance-id"
	// RAMRoleResource is ram-role url subpath
	RAMRoleResource = "ram/security-credentials/"
)

Variables

This section is empty.

Functions

func GetGlobalMountPath added in v1.1.7

func GetGlobalMountPath(volumeId string) string

func GetRAMRoleOption added in v1.0.5

func GetRAMRoleOption() string

GetRAMRoleOption get command line's ram_role option

Types

type OSS added in v1.0.1

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

OSS the OSS object

func NewDriver

func NewDriver(nodeID, endpoint string, m metadata.MetadataProvider, runAsController bool) *OSS

NewDriver init oss type of csi driver

func (*OSS) Run added in v1.0.1

func (d *OSS) Run()

Run start a newNodeServer

type Options added in v1.0.1

type Options struct {
	Bucket              string `json:"bucket"`
	URL                 string `json:"url"`
	OtherOpts           string `json:"otherOpts"`
	AkID                string `json:"akId"`
	AkSecret            string `json:"akSecret"`
	Path                string `json:"path"`
	UseSharedPath       bool   `json:"useSharedPath"`
	AuthType            string `json:"authType"`
	RoleName            string `json:"roleName"`
	RoleArn             string `json:"roleArn"`
	OidcProviderArn     string `json:"oidcProviderArn"`
	ServiceAccountName  string `json:"serviceAccountName"`
	SecretProviderClass string `json:"secretProviderClass"`
	FuseType            string `json:"fuseType"`
	MetricsTop          string `json:"metricsTop"`
	ReadOnly            bool   `json:"readOnly"`
	Encrypted           string `json:"encrypted"`
	KmsKeyId            string `json:"kmsKeyId"`
	// contains filtered or unexported fields
}

Options contains options for target oss

Jump to

Keyboard shortcuts

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