util

package
v0.0.0-...-5fac3ff Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMap

func GetConfigMap(context rcontext.Context, cmname string, fallback bool) (*v1.ConfigMap, error)

GetConfigMap gets the ubernetes configmap of the given name.

func GetConfigMapValue

func GetConfigMapValue(context rcontext.Context, name string, key string, fallback bool) (string, error)

GetConfigMapValue gets the value of the configmap of the given name in the given namespace. If not found and fallback is true, check default namespace

func GetField

func GetField(obj interface{}, field string) interface{}

GetField gets a field in a struct using reflect

func GetIAMAccountInfo

func GetIAMAccountInfo(r client.Client, namespace string) (*session.Session, *accountv2.Account, error)

func HasConfigMap

func HasConfigMap(context rcontext.Context, name string, fallback bool) bool

HasConfigMap checks if a configmap exists

func SetField

func SetField(obj interface{}, field string, value interface{})

SetField sets a field in a struct using reflect

func SetFieldToZero

func SetFieldToZero(obj interface{}, field string)

SetField sets a field in a struct to type specific zero using reflect

Types

This section is empty.

Jump to

Keyboard shortcuts

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