filesystem

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

README

rootfs dir

CloudImage Mount Dir

/var/lib/sealer/data/<my-cluster>/mount

Copy rootfs Dir

/var/lib/sealer/data/<my-cluster>/rootfs

Clusterfile and certs dir

/var/lib/sealer/data/<my-cluster>/rootfs/
         |--Clusterfile
         |--pki
         |--controller-manager.conf
....

Documentation

Index

Constants

View Source
const (
	RemoteChmod = "cd %s  && chmod +x scripts/* && cd scripts && bash init.sh"
)

Variables

This section is empty.

Functions

func CopyFiles

func CopyFiles(ssh ssh.Interface, isRegistry bool, ip, src, target string) error

Types

type FileSystem

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

func (*FileSystem) Clean

func (c *FileSystem) Clean(cluster *v2.Cluster) error

func (*FileSystem) MountImage

func (c *FileSystem) MountImage(cluster *v2.Cluster) error

func (*FileSystem) MountRootfs

func (c *FileSystem) MountRootfs(cluster *v2.Cluster, hosts []string, initFlag bool) error

func (*FileSystem) UnMountImage

func (c *FileSystem) UnMountImage(cluster *v2.Cluster) error

func (*FileSystem) UnMountRootfs

func (c *FileSystem) UnMountRootfs(cluster *v2.Cluster) error

type Interface

type Interface interface {
	MountRootfs(cluster *v2.Cluster, hosts []string, initFlag bool) error
	UnMountRootfs(cluster *v2.Cluster) error
	MountImage(cluster *v2.Cluster) error
	UnMountImage(cluster *v2.Cluster) error
	Clean(cluster *v2.Cluster) error
}

func NewFilesystem

func NewFilesystem() (Interface, error)

Jump to

Keyboard shortcuts

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