Documentation ¶
Index ¶
Constants ¶
View Source
const ( // JindofsCredentialPathInPod Pod side sts file JindofsCredentialPathInPod = "/oss-secret/sts-token" // JindofsCredentialPathOnHost Host side sts file JindofsCredentialPathOnHost = "/host/etc/jindofs-credentials" )
View Source
const ( //CredentialFile is the path of oss ak credential file CredentialFile = "/host/etc/passwd-ossfs" // NsenterCmd is nsenter mount command NsenterCmd = "/nsenter --mount=/proc/1/ns/mnt" // SocketPath is path of connector sock SocketPath = "/host/etc/csi-tool/connector.sock" // AkID is Ak ID AkID = "akId" // AkSecret is Ak Secret AkSecret = "akSecret" SharedPath = "/var/lib/kubelet/plugins/kubernetes.io/csi/pv/%s/globalmount" // JindoFsType is the oss filesystem type JindoFsType = "fuse.jindofs-fuse" )
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 IsJindofsMounted ¶
IsJindofsMounted return if Jindofs mountPath is mounted
func IsLastSharedVol ¶
IsLastSharedVol return code status to help check if this oss volume uses UseSharedPath and is the last one
Types ¶
Click to show internal directories.
Click to hide internal directories.