cloudfilesystem

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteNydusdInit = "cd %s && chmod +x *.sh && bash start.sh %s"
	RemoteNydusdStop = "if [ -f \"%[1]s\" ];then sh %[1]s;fi && rm -rf %s"
)
View Source
const (
	RemoteChmod = "cd %s  && chmod +x scripts/* && cd scripts && bash init.sh /var/lib/docker %s %s"
)

Variables

This section is empty.

Functions

func CleanFilesystem

func CleanFilesystem(clusterName string) error

Types

type Interface

type Interface interface {
	// MountRootfs :send cloud rootfs to all hosts.
	MountRootfs(cluster *v2.Cluster, hosts []net.IP, initFlag bool) error
	// UnMountRootfs :umount rootfs on all hosts.
	UnMountRootfs(cluster *v2.Cluster, hosts []net.IP) error
}

func NewNydusFileSystem

func NewNydusFileSystem() (Interface, error)

func NewOverlayFileSystem

func NewOverlayFileSystem() (Interface, error)

Jump to

Keyboard shortcuts

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