Documentation ¶
Index ¶
- func AllocateIps(ncns []*csi.LogicalNCN, networks map[string]*csi.IPV4Network)
- func Copy(srcFile, dstFile string) error
- func CopyArtifactsToPart(src string, dest string, regex string)
- func CopyDirectory(scrDir, dest string) error
- func CopySymLink(source, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func Execute()
- func Exists(filePath string) bool
- func GetArtifact(dirpath string, url string) (err error)
- func PadRight(str, pad string, lenght int) string
- func PrintConfig(v *viper.Viper)
- func ValidateSchema(f string, s string) (bool, error)
- func WalkMatch(root, pattern string) ([]string, error)
- type CACerts
- type CloudInitGlobal
- type Customizations
- type HMNComponent
- type HMNConnections
- type Id
- type Location
- type Metadata
- type Port
- type SealedSecret
- type Shcd
- type Switch
- type SwitchMetadata
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 CopyArtifactsToPart ¶
CopyArtifactsToPart copies files needed to the PITDATA partition
func CreateIfNotExists ¶
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 GetArtifact ¶
GetArtifact downloads kernels, initrd, and squashfs images
func PrintConfig ¶
PrintConfig : Dump all configuration information as a yaml file on stdout
func ValidateSchema ¶ added in v1.9.1
ValidateSchema compares a JSON file to the defined schema file
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 - Boilerplace 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 HMNComponent ¶ added in v1.9.1
type HMNComponent struct { Source string SourceRack string SourceLocation string SourceSubLocation string DestinationRack string DestinationLocation int DestinationPort string }
HMNComponent is an individual component in the HMNConnections slice
type HMNConnections ¶ added in v1.9.1
type HMNConnections []HMNComponent
HMNConnections type is the go equivalent structure of hmn_connections.json
type Id ¶ added in v1.8.0
type Id struct { Architecture string `json:"architecture"` CommonName string `json:"common_name"` ID int `json:"id"` Location Location `json:"location"` Model string `json:"model"` Ports []Port `json:"ports"` Type string `json:"type"` Vendor string `json:"vendor"` }
The Id type represents all of the information needed for
type Metadata ¶
type Metadata struct {
CACerts `json:"ca-certs"`
}
Metadata - Boilerplate for cloud-init hierarchical structure
type Port ¶ added in v1.8.0
type Port struct { DestNodeID int `json:"destination_node_id"` DestPort int `json:"destination_port"` DestSlot string `json:"destination_slot"` Port int `json:"port"` Slot string `json:"slot"` Speed int `json:"speed"` }
The Port type defines where things are plugged in
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
type Shcd ¶ added in v1.8.0
type Shcd []Id
The Shcd type represents the entire machine-readable SHCD inside a go struct
type SwitchMetadata ¶ added in v1.9.1
type SwitchMetadata []Switch
SwitchMetadata type is the go equivalent structure of switch_metadata.csv
Source Files ¶
- config.go
- cow.go
- dump.go
- format.go
- gen-sls.go
- get.go
- handoff-bss-metadata.go
- handoff-bss-update_cloud-init.go
- handoff-bss-update_param.go
- handoff-ncn-images.go
- handoff.go
- init.go
- install.go
- load.go
- loftsman.go
- makedocs.go
- manage_input_files.go
- patch-ca.go
- patch.go
- pit.go
- pitdata.go
- populate.go
- root.go
- shcd.go
- upload-sls.go
- validate.go
- verify.go
- version.go