rootfs

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

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) Fs

func (l *Local) Fs() filesystem.Interface

Fs returns the filesystem interface.

func (*Local) HostRootFsDir

func (l *Local) HostRootFsDir(host string) string

HostRootFsDir returns the rootfs directory for the host.

Jump to

Keyboard shortcuts

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