Documentation ¶
Index ¶
- func BuildFullSshCmd(sshCmd string, host string) (string, string, error)
- func BuildSshConfigFile(inventoryFile string, sshConfigFile string, yaml bool, etc bool) error
- func BuildSshConfigFileFromEtcHosts(etcHostsFile string, sshConfigFile string) error
- func BuildSshConfigFileFromIni(inventoryFile string, sshConfigFile string) error
- func BuildSshConfigFileFromYaml(inventoryFile string, sshConfigFile string) error
- func ConvertToString(value interface{}) string
- func DetectType(value []byte) string
- func ExecCmd(cmd string) ([]string, error)
- func ExecCmdSimple(cmd string) (string, error)
- func ExecComplexCmd(cmd string) (string, error)
- func FormatShellCommand(input string) []string
- func GetNestedFieldValue(data interface{}, keyName string) interface{}
- func IsIni(data []byte) bool
- func IsJson(data []byte) bool
- func IsYaml(data []byte) bool
- func SliceIndex(element string, data []string) int
- func SnakeToCamel(s string) string
- func StringInSlice(a string, list []string) bool
- func TestEqualSlice(a []string, b []string) bool
- func TestOCConnection() bool
- func TestSshConnection(sshCmd string) bool
- func ToLowerSlice(data []string) []string
- type AnsibleHostStruct
- type Config
- type Group
- type Host
- type Inventory
- type ODConfig
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSshConfigFile ¶
func ConvertToString ¶
func ConvertToString(value interface{}) string
func DetectType ¶
func ExecCmdSimple ¶
func ExecComplexCmd ¶
func FormatShellCommand ¶
func GetNestedFieldValue ¶
func GetNestedFieldValue(data interface{}, keyName string) interface{}
func SliceIndex ¶
func SnakeToCamel ¶
func StringInSlice ¶
func TestEqualSlice ¶
func TestOCConnection ¶
func TestOCConnection() bool
func TestSshConnection ¶
func ToLowerSlice ¶
Types ¶
type AnsibleHostStruct ¶
type Config ¶
func LoadServiceConfigFile ¶
type Group ¶
type Group struct { Hosts map[string]AnsibleHostStruct `yaml:"hosts"` Vars map[string]interface{} `yaml:"vars"` }
type Host ¶
type Host struct { Name string HostName string IdentityFile string Port string User string AdditionalLines []string StrictHostKeyChecking string UserKnownHostsFile string }
Host structure for ssh config file
type ODConfig ¶
type ODConfig struct { Default struct { LocalConfigDir string `ini:"local_config_dir"` ServiceConfigFile string `ini:"service_config_file"` } `ini:"Default"` Tripleo struct { SshCmd string `ini:"ssh_cmd"` DirectorHost string `ini:"director_host"` ContainerEngine string `ini:"container_engine"` Connection string `ini:"connection"` RemoteConfigPath string `ini:"remote_config_path"` LocalConfigPath string `ini:"local_config_path"` } `ini:"Tripleo"` Openshift struct { OcpLocalConfigPath string `ini:"ocp_local_config_path"` Connection string `ini:"connection"` } `ini:"Openshift"` }
OS Diff Config Structure
func LoadOSDiffConfig ¶
type Service ¶
type Service struct { Enable bool `yaml:"enable"` PodmanId string `yaml:"podman_id"` PodmanImage string `yaml:"podman_image"` PodmanName string `yaml:"podman_name"` PodName string `yaml:"pod_name"` ContainerName string `yaml:"container_name"` StrictPodNameMatch bool `yaml:"strict_pod_name_match"` Path []string `yaml:"path"` Hosts []string `yaml:"hosts"` ServiceCommand string `yaml:"service_command"` CatOutput bool `yaml:"cat_output"` ConfigMapping map[string]string `yaml:"config_mapping"` }
Service YAML Config Structure
Click to show internal directories.
Click to hide internal directories.