oss

package
v0.0.0-...-4f17fb6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

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) Attach

func (p *OssPlugin) Attach(opts interface{}, nodeName string) utils.Result

Attach not supported

func (*OssPlugin) Detach

func (p *OssPlugin) Detach(device string, nodeName string) utils.Result

Detach not support

func (*OssPlugin) Getvolumename

func (p *OssPlugin) Getvolumename(opts interface{}) utils.Result

Getvolumename Support

func (*OssPlugin) Init

func (p *OssPlugin) Init() utils.Result

Init oss plugin init

func (*OssPlugin) Mount

func (p *OssPlugin) Mount(opts interface{}, mountPath string) utils.Result

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

func (p *OssPlugin) Mountdevice(mountPath string, opts interface{}) utils.Result

Mountdevice Not Support

func (*OssPlugin) NewOptions

func (p *OssPlugin) NewOptions() interface{}

NewOptions plugin new options

func (*OssPlugin) Unmount

func (p *OssPlugin) Unmount(mountPoint string) utils.Result

Unmount format /usr/libexec/kubernetes/kubelet-plugins/volume/exec/alicloud~oss/oss unmount /var/lib/kubelet/pods/e000259c-4dac-11e8-a884-00163e0f011e/volumes/alicloud~oss/oss1

func (*OssPlugin) Waitforattach

func (p *OssPlugin) Waitforattach(devicePath string, opts interface{}) utils.Result

Waitforattach Not Support

Jump to

Keyboard shortcuts

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