generate

package
v0.0.0-...-07a2936 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVADirs

func CreateVADirs(root string, templateDir embed.FS) error

func GenEdpmNodesetValues

func GenEdpmNodesetValues(outDir string, configs embed.FS, cdl *types.ConfigDownload) error

func GenGraph

func GenGraph(templateDir embed.FS, outDir string, cdl *types.ConfigDownload) error

func GenNNCP

func GenNNCP(outDir string, cdl *types.ConfigDownload) error

func GenNNCPFile

func GenNNCPFile(root string, nncpv []nncp.NNCP) error

func GenNadFile

func GenNadFile(outDir string, nads []networkv1.NetworkAttachmentDefinition) error

func GenNetAttachDef

func GenNetAttachDef(network *types.OSPNetwork) ([]byte, error)

func GenNetConfig

func GenNetConfig(root string)

func GenOpenStackControlPlane

func GenOpenStackControlPlane(templateDir embed.FS, outDir string) error

func GenOpenStackSecret

func GenOpenStackSecret(templateDir embed.FS, outDir string, passwords map[string]interface{}, groupVars map[string]interface{}) error

func GenSecrets

func GenSecrets(templateDir embed.FS, outDir string, cdl *types.ConfigDownload) error

func GenerateNetworkValues

func GenerateNetworkValues(outDir string, cdl *types.ConfigDownload) error

func MapVars

func MapVars(varName string, value interface{}) error

func NeutronPhysnetNUMANodesMapping

func NeutronPhysnetNUMANodesMapping(s interface{}, config *ini.File) error

Map of phynet name as key and NUMA nodes as value. For example: NeutronPhysnetNUMANodesMapping: {'foo': [0, 1], 'bar': [1]} where foo and bar are physnet names and corresponding values are list of associated numa_nodes

[neutron] physnets = foo, bar [neutron_physnet_foo] numa_nodes = 0 [neutron_physnet_bar] numa_nodes = 0,1

func NeutronTunnelNUMANodes

func NeutronTunnelNUMANodes(s interface{}, config *ini.File) error

func Passthrough

func Passthrough(value interface{}, config *ini.File) error

Passthrough function that returns the input string as is.

Types

type EDPMDeploymentConfigMap

type EDPMDeploymentConfigMap struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name        string                 `yaml:"name"`
		Annotations map[string]interface{} `yaml:"annotations"`
	} `yaml:"metadata"`
	Data interface{} `yaml:"data"`
}

type EDPMNodesetConfigMap

type EDPMNodesetConfigMap struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name        string                 `yaml:"name"`
		Annotations map[string]interface{} `yaml:"annotations"`
	} `yaml:"metadata"`
	Data map[string]interface{} `yaml:"data"`
}

type FnMap

type FnMap struct {
	Path     string `json:"path"`
	Function string `json:"function"`
	Type     string `json:"type"`
	Target   string `json:"target"`
}

func (*FnMap) NovaPCIPassthrough

func (f *FnMap) NovaPCIPassthrough(value interface{}, config *ini.File) error

Jump to

Keyboard shortcuts

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