cmd

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 64 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

type CACerts

type CACerts struct {
	RemoveDefaults bool     `json:"remove-defaults"`
	Trusted        []string `json:"trusted"`
}

CACerts - For storage of ca-certs cloud-init update

type CloudInitGlobal

type CloudInitGlobal struct {
	Global struct {
		Metadata `json:"meta-data"`
	}
}

CloudInitGlobal - Boilerplate for cloud-init hierarchical structure

type Customizations

type Customizations struct {
	Spec struct {
		Kubernetes struct {
			SealedSecrets map[string]SealedSecret `yaml:"sealed_secrets"`
		}
	}
	// contains filtered or unexported fields
}

Customizations - Minimum customizations (shasta-cfg) struct to access sealed secrets

type Metadata

type Metadata struct {
	CACerts `json:"ca-certs"`
}

Metadata - Boilerplate for cloud-init hierarchical structure

type SealedSecret

type SealedSecret struct {
	Spec struct {
		EncryptedData map[string]string `yaml:"encryptedData"`
		Template      struct {
			Metadata struct {
				Annotations map[string]string
			}
		}
	}
}

SealedSecret - Minimum struct to determine secret scope and access encrypted data

Jump to

Keyboard shortcuts

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