Documentation ¶
Overview ¶
Package installutils implements some utility functions for the liqo install providers
Index ¶
- Constants
- func CheckEndpoint(endpoint string, config *rest.Config) (bool, error)
- func CheckStringFlagIsSet(flags *flag.FlagSet, name string) (string, error)
- func FusionMap(baseMap, patchMap map[string]interface{}) (map[string]interface{}, error)
- func GetInterfaceMap(in map[string]string) map[string]interface{}
- func GetInterfaceSlice(in []string) []interface{}
Constants ¶
View Source
const ( // LiqoctlInstallShortHelp contains the short help message for install Liqoctl command. LiqoctlInstallShortHelp = "Install Liqo on a selected cluster" // LiqoctlInstallLongHelp contains the long help message for install Liqoctl command. LiqoctlInstallLongHelp = `Install Liqo on a selected cluster` // LiqoctlInstallCommand contains the use command for the Liqo installation command. LiqoctlInstallCommand = "install" // LiqoNamespace contains the default namespace for Liqo installation. LiqoNamespace = "liqo" // LiqoChartFullName indicates the name where the Liqo chart can be retrieved. LiqoChartFullName = "liqo/liqo" // LiqoReleaseName indicates the default release name when installing the Liqo chart. LiqoReleaseName = "liqo" )
Variables ¶
This section is empty.
Functions ¶
func CheckEndpoint ¶
CheckEndpoint checks if the provided endpoint end the endpoint contained in the rest.Config point to the same server.
func CheckStringFlagIsSet ¶
CheckStringFlagIsSet checks that a string flag is set and returns its value.
func FusionMap ¶
FusionMap fusions two maps recursively writing the result in expectedResultMap result passed as argument. In case of duplicated keys, the values extracted from patchMap are considered valid.
func GetInterfaceMap ¶
GetInterfaceMap casts a map of [string]string to a map of [string]interface{}.
func GetInterfaceSlice ¶
func GetInterfaceSlice(in []string) []interface{}
GetInterfaceSlice casts a slice of string to a slice in interface{}.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.