Documentation
¶
Index ¶
- Constants
- func GenOSPConfig(values map[string]interface{}) ([]byte, error)
- func GetFullPath(fileName string) string
- func GetFuncMap() template.FuncMap
- func GetTripleoOvercloudNetworkData() ([]map[string]interface{}, error)
- func IpOffset(cidr netip.Prefix, offset int) (netip.Addr, error)
- func MarshalArray[T any](mapInput interface{}, things *[]T)
- func MarshalMap[T any](mapInput interface{}, things *T)
- func ProcessTemplate(templateDir embed.FS, templateFile string, name string, ...) (*bytes.Buffer, error)
- func ReadRhosoConfig(path string) error
- func SearchFile(targetFileName string) (string, error)
- func SearchFileRegex(path string, targetFileRegex string) ([]string, error)
- func SetRootDir(dir string)
- func StructToJson(obj interface{}) ([]byte, error)
- func StructToYaml(obj interface{}) ([]byte, error)
- func StructToYamlK8s(obj interface{}) ([]byte, error)
- func WalkDir(dirname string)
- func WriteByteData(buf []byte, dir string, fileName string) error
- func YamlToList(filename string) ([]map[string]interface{}, error)
- func YamlToMap(filename string) (map[string]interface{}, error)
- func YamlToStruct[T any](filename string, obj *T) error
- type RhosoConfig
- type WorkerNode
Constants ¶
View Source
const ( TRIPLEO_OVERCLOUD_ROLES_DATA string = "tripleo-overcloud-roles-data.yaml" TRIPLEO_OVERCLOUD_ENVIRONMENT string = "environment/tripleo-overcloud-environment.yaml" TRIPLEO_ANSIBLE_INVENTORY_YAML string = "tripleo-ansible-inventory.yaml" OVERCLOUD_EXPORT string = "overcloud-export.yaml" OVERCLOUD_PASSWORDS string = "overcloud-passwords.yaml" GLOBAL_VARS string = "config-download/overcloud/global_vars.yaml" TRIPLEO_OVERCLOUD_NETWORK_DATA string = "tripleo-overcloud-network-data.yaml" BAREMETAL_DEPLOY string = "tripleo-overcloud-baremetal-deployment.yaml" DEPLOY_STEPS_ONE string = "config-download/overcloud/external_deploy_steps_tasks_step1.yaml" )
Variables ¶
This section is empty.
Functions ¶
func GenOSPConfig ¶
func GetFullPath ¶
func GetFuncMap ¶
func MarshalArray ¶
func MarshalArray[T any](mapInput interface{}, things *[]T)
func MarshalMap ¶
func MarshalMap[T any](mapInput interface{}, things *T)
func ProcessTemplate ¶
func ReadRhosoConfig ¶
func SearchFile ¶
func SetRootDir ¶
func SetRootDir(dir string)
func StructToJson ¶
func StructToYaml ¶
func StructToYamlK8s ¶
func YamlToList ¶
func YamlToStruct ¶
Types ¶
type RhosoConfig ¶
type RhosoConfig struct { WorkerNodes []WorkerNode `yaml:"worker_nodes"` Interface string `yaml:"interface"` ControllerRole string `yaml:"controller_role,omitempty"` }
func GetConfig ¶
func GetConfig() RhosoConfig
type WorkerNode ¶
Click to show internal directories.
Click to hide internal directories.