Documentation ¶
Index ¶
- Constants
- type OssOptions
- type OssPlugin
- func (p *OssPlugin) Attach(opts interface{}, nodeName string) utils.Result
- func (p *OssPlugin) Detach(device string, nodeName string) utils.Result
- func (p *OssPlugin) Getvolumename(opts interface{}) utils.Result
- func (p *OssPlugin) Init() utils.Result
- func (p *OssPlugin) Mount(opts interface{}, mountPath string) utils.Result
- func (p *OssPlugin) Mountdevice(mountPath string, opts interface{}) utils.Result
- func (p *OssPlugin) NewOptions() interface{}
- func (p *OssPlugin) Unmount(mountPoint string) utils.Result
- func (p *OssPlugin) Waitforattach(devicePath string, opts interface{}) utils.Result
Constants ¶
View Source
const (
CredentialFile = "/etc/passwd-ossfs"
)
const values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OssOptions ¶
type OssOptions struct { Bucket string `json:"bucket"` Url string `json:"url"` OtherOpts string `json:"otherOpts"` AkId string `json:"akId"` AkSecret string `json:"akSecret"` VolumeName string `json:"kubernetes.io/pvOrVolumeName"` SecretAkId string `json:"kubernetes.io/secret/akId"` SecretAkSec string `json:"kubernetes.io/secret/akSecret"` }
OssOptions oss plugin options
type OssPlugin ¶
type OssPlugin struct {
// contains filtered or unexported fields
}
OssPlugin oss plugin
func (*OssPlugin) Getvolumename ¶
Getvolumename Support
func (*OssPlugin) Mount ¶
Mount Paras format: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/alicloud~oss/oss mount /var/lib/kubelet/pods/e000259c-4dac-11e8-a884-04163e0f011e/volumes/alicloud~oss/oss1
{ "akId":"***", "akSecret":"***", "bucket":"oss", "kubernetes.io/fsType": "", "kubernetes.io/pod.name": "nginx-oss-deploy-f995c89f4-kj25b", "kubernetes.io/pod.namespace":"default", "kubernetes.io/pod.uid":"e000259c-4dac-11e8-a884-04163e0f011e", "kubernetes.io/pvOrVolumeName":"oss1", "kubernetes.io/readwrite":"rw", "kubernetes.io/serviceAccount.name":"default", "otherOpts":"-o max_stat_cache_size=0 -o allow_other", "url":"oss-cn-hangzhou.aliyuncs.com" }
func (*OssPlugin) Mountdevice ¶
Mountdevice Not Support
func (*OssPlugin) NewOptions ¶
func (p *OssPlugin) NewOptions() interface{}
NewOptions plugin new options
Click to show internal directories.
Click to hide internal directories.