rclone

package
v1.2.1-0...-52bf6f3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DriverName    = "csi-rclone"
	DriverVersion = "latest"
)

Functions

func GetK8sClient

func GetK8sClient() (*kubernetes.Clientset, error)

func Mount

func Mount(remote string, remotePath string, targetPath string, configData string, flags map[string]string) (rcPort int, err error)

Mount routine.

func NewControllerServer

func NewControllerServer(d *Driver) *controllerServer

func NewNodeServer

func NewNodeServer(d *Driver) *nodeServer

func RcloneRPC

func RcloneRPC(host string, method string, input string) (output string, err error)

RcloneRPC is a helper function to call rclone rc server

Types

type Driver

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

func NewDriver

func NewDriver(nodeID, endpoint string) *Driver

func (*Driver) Run

func (d *Driver) Run()

Jump to

Keyboard shortcuts

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