-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
44 lines (36 loc) · 911 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package oss
import (
csicommon "github.com/kubernetes-csi/drivers/pkg/csi-common"
"k8s.io/client-go/kubernetes"
)
type OssDriver struct {
csiDriver *csicommon.CSIDriver
endpoint string
idServer *IdentityServer
nodeServer *NodeServer
controllerServer *ControllerServer
}
type NodeServer struct {
*csicommon.DefaultNodeServer
}
type ControllerServer struct {
*csicommon.DefaultControllerServer
Client *kubernetes.Clientset
}
type IdentityServer struct {
*csicommon.DefaultIdentityServer
}
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 struct {
OssOpts
NodePublishPath string
AllowSharePath bool
}