oss

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypeDefault = "saveAkFile"

	CredentialFile = "/etc/s3pass"
)

Variables

This section is empty.

Functions

func IsFileExisting

func IsFileExisting(filename string) bool

IsFileExisting check file exist in volume driver or not

Types

type ControllerServer

type ControllerServer struct {
	*csicommon.DefaultControllerServer
	Client *kubernetes.Clientset
}

type IdentityServer

type IdentityServer struct {
	*csicommon.DefaultIdentityServer
}

func NewIdentityServer

func NewIdentityServer(d *OssDriver) *IdentityServer

type NodeServer

type NodeServer struct {
	*csicommon.DefaultNodeServer
}

func NewNodeServer

func NewNodeServer(d *OssDriver) *NodeServer

func (*NodeServer) NodePublishVolume

func (*NodeServer) NodeUnpublishVolume

type OssDriver

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

func NewDriver

func NewDriver(driverName, nodeId, endpoint string) *OssDriver

func (*OssDriver) Run

func (d *OssDriver) Run()

type OssOpts

type OssOpts 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"`
}

type PublishOptions

type PublishOptions struct {
	OssOpts
	NodePublishPath string
	AllowSharePath  bool
}

Jump to

Keyboard shortcuts

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