Documentation
¶
Index ¶
- Constants
- Variables
- func NewControllerServer(d *Driver) *controllerServer
- func NewNodeServer(d *Driver) *nodeServer
- type ConfigCreateRequest
- type ConfigDeleteRequest
- type Driver
- type MountOpt
- type MountRequest
- type Operations
- type Rclone
- func (r *Rclone) Cleanup() error
- func (r *Rclone) CreateVol(ctx context.Context, volumeName, remote, remotePath, rcloneConfigPath string, ...) error
- func (r Rclone) DeleteVol(ctx context.Context, rcloneVolume *RcloneVolume, rcloneConfigPath string, ...) error
- func (r Rclone) GetVolumeById(ctx context.Context, volumeId string) (*RcloneVolume, error)
- func (r *Rclone) Mount(ctx context.Context, rcloneVolume *RcloneVolume, ...) error
- func (r *Rclone) Run() error
- func (r Rclone) Unmount(ctx context.Context, volumeId string, targetPath string) error
- type RcloneVolume
- type UnmountRequest
- type VfsOpt
Constants ¶
View Source
const CSI_ANNOTATION_PREFIX = "csi-rclone.dev"
Variables ¶
View Source
var (
DriverVersion = "SwissDataScienceCenter"
)
View Source
var (
ErrVolumeNotFound = errors.New("volume is not found")
)
Functions ¶
func NewControllerServer ¶
func NewControllerServer(d *Driver) *controllerServer
func NewNodeServer ¶
func NewNodeServer(d *Driver) *nodeServer
Types ¶
type ConfigCreateRequest ¶
type ConfigDeleteRequest ¶
type ConfigDeleteRequest struct {
Name string `json:"name"`
}
type Driver ¶
type Driver struct {
RcloneOps Operations
Server csicommon.NonBlockingGRPCServer
// contains filtered or unexported fields
}
type MountRequest ¶
type Operations ¶
type Operations interface {
CreateVol(ctx context.Context, volumeName, remote, remotePath, rcloneConfigPath string, pameters map[string]string) error
DeleteVol(ctx context.Context, rcloneVolume *RcloneVolume, rcloneConfigPath string, pameters map[string]string) error
Mount(ctx context.Context, rcloneVolume *RcloneVolume, targetPath string, rcloneConfigData string, readOnly bool, pameters map[string]string) error
Unmount(ctx context.Context, volumeId string, targetPath string) error
GetVolumeById(ctx context.Context, volumeId string) (*RcloneVolume, error)
Cleanup() error
Run() error
}
func NewRclone ¶
func NewRclone(kubeClient *kubernetes.Clientset, port int) Operations
type Rclone ¶
type Rclone struct {
// contains filtered or unexported fields
}
func (Rclone) GetVolumeById ¶
type RcloneVolume ¶
type UnmountRequest ¶
type UnmountRequest struct {
MountPoint string `json:"mountPoint"`
}
Click to show internal directories.
Click to hide internal directories.