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 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
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"` 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
Click to show internal directories.
Click to hide internal directories.