installutils

package
v0.3.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package installutils implements some utility functions for the liqo install providers

Index

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

func CheckEndpoint(endpoint string, config *rest.Config) (bool, error)

CheckEndpoint checks if the provided endpoint end the endpoint contained in the rest.Config point to the same server.

func CheckStringFlagIsSet

func CheckStringFlagIsSet(flags *flag.FlagSet, providerPrefix, name string) (string, error)

CheckStringFlagIsSet checks that a string flag is set and returns its value.

func FusionMap

func FusionMap(baseMap, patchMap map[string]interface{}) (map[string]interface{}, error)

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

func GetInterfaceMap(in map[string]string) map[string]interface{}

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{}.

func PrefixedName

func PrefixedName(providerPrefix, name string) string

PrefixedName returns the paramenter name with the providerPrefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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