util

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package util implements utility functions for the liqo install providers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 GetStringMap

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

GetStringMap converts a map of [string]interface{} to a map of [string]string.

func MergeMaps

func MergeMaps(baseMap, patchMap map[string]interface{}) (resultMap map[string]interface{}, err error)

MergeMaps merges two maps recursively writing the result to resultMap. In case keys are found in both maps, patchMap's values will be chosen over baseMap's.

Types

This section is empty.

Jump to

Keyboard shortcuts

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