cmd

package
v1.32.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 57 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateIps

func AllocateIps(ncns []*csi.LogicalNCN, networks map[string]*csi.IPV4Network)

AllocateIps distributes IP reservations for each of the NCNs within the networks

func Copy

func Copy(srcFile, dstFile string) error

Copy is the main copy function

func CopyArtifactsToPart

func CopyArtifactsToPart(src string, dest string, regex string)

CopyArtifactsToPart copies files needed to the PITDATA partition

func CopyDirectory

func CopyDirectory(scrDir, dest string) error

CopyDirectory copies a directory

func CopySymLink(source, dest string) error

CopySymLink checks and copy symlinks

func CreateIfNotExists

func CreateIfNotExists(dir string, perm os.FileMode) error

CreateIfNotExists creates it if it doesn't

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Exists

func Exists(filePath string) bool

Exists checks if a file exists

func GetArtifact

func GetArtifact(dirpath string, url string) (err error)

GetArtifact downloads kernels, initrd, and squashfs images

func PadRight

func PadRight(str, pad string, lenght int) string

PadRight adds nice formatting for strings

func PrintConfig

func PrintConfig(v *viper.Viper)

PrintConfig : Dump all configuration information as a yaml file on stdout

func WalkMatch

func WalkMatch(root, pattern string) ([]string, error)

WalkMatch finds files on a pattern match

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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