Documentation
¶
Overview ¶
Package rootfs defines the CAPKK rootfs.
Index ¶
Constants ¶
View Source
const (
DefaultLocalTmpDir = "/var/lib/kubekey"
DefaultLocalRootFsDir = "/var/lib/kubekey/rootfs"
)
common dir.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// ClusterRootFsDir returns the rootfs directory of the cluster.
ClusterRootFsDir() string
// HostRootFsDir returns the rootfs directory of the host.
HostRootFsDir(host string) string
// Fs returns the filesystem interface.
Fs() filesystem.Interface
}
Interface is the interface for rootfs.
func NewLocalRootFs ¶
func NewLocalRootFs(clusterName, basePath string) Interface
NewLocalRootFs returns a new Local implementation of rootfs interface.
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local is a rootfs for local.
func (*Local) ClusterRootFsDir ¶
func (l *Local) ClusterRootFsDir() string
ClusterRootFsDir returns the rootfs directory for the cluster.
func (*Local) HostRootFsDir ¶
func (l *Local) HostRootFsDir(host string) string
HostRootFsDir returns the rootfs directory for the host.
Click to show internal directories.
Click to hide internal directories.