Documentation ¶
Index ¶
- Constants
- 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 ProcessTemplate(templateFile string, name string, funcMap template.FuncMap, data interface{}) (*bytes.Buffer, error)
- func ReadRhosoConfig(path string) error
- func SearchFile(targetFileName 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 WorkerNodes
Constants ¶
View Source
const ( 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 GetFullPath ¶
func GetFuncMap ¶
func MarshalArray ¶
func MarshalArray[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 WorkerNodes `yaml:"worker_nodes"` ControllerRole string `yaml:"controller_role,omitempty"` }
func GetConfig ¶
func GetConfig() RhosoConfig
type WorkerNodes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.