utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeStringMap

func Base64EncodeStringMap(m map[string]interface{}) map[string]interface{}

func BuildId

func BuildId(meta metav1.ObjectMeta) string

func ConvertMap

func ConvertMap(src map[string]interface{}) map[string]string

func ExpandBase64MapToByteMap

func ExpandBase64MapToByteMap(m map[string]interface{}) map[string][]byte

func ExpandMapToResourceList

func ExpandMapToResourceList(m map[string]interface{}) (*api.ResourceList, error)

func ExpandStringMap

func ExpandStringMap(m map[string]interface{}) map[string]string

func ExpandStringMapToByteMap

func ExpandStringMapToByteMap(m map[string]interface{}) map[string][]byte

func ExpandStringSlice

func ExpandStringSlice(s []interface{}) []string

func FlattenByteMapToBase64Map

func FlattenByteMapToBase64Map(m map[string][]byte) map[string]string

func FlattenByteMapToStringMap

func FlattenByteMapToStringMap(m map[string][]byte) map[string]string

func FlattenResourceList

func FlattenResourceList(l api.ResourceList) map[string]string

func FlattenStringMap

func FlattenStringMap(m map[string]string) map[string]interface{}

func IdParts

func IdParts(id string) (string, string, error)

func NewInt64Set

func NewInt64Set(f schema.SchemaSetFunc, in []int64) *schema.Set

func NewStringSet

func NewStringSet(f schema.SchemaSetFunc, in []string) *schema.Set

func PtrToBool

func PtrToBool(b bool) *bool

func PtrToInt32

func PtrToInt32(i int32) *int32

func PtrToInt64

func PtrToInt64(i int64) *int64

func PtrToString

func PtrToString(s string) *string

func SchemaSetToInt64Array

func SchemaSetToInt64Array(set *schema.Set) []int64

func SchemaSetToStringArray

func SchemaSetToStringArray(set *schema.Set) []string

func SliceOfString

func SliceOfString(slice []interface{}) []string

func StringIsIntInRange

func StringIsIntInRange(min int, max int) schema.SchemaValidateFunc

func ValidateAnnotations

func ValidateAnnotations(value interface{}, key string) (ws []string, es []error)

func ValidateGenerateName

func ValidateGenerateName(value interface{}, key string) (ws []string, es []error)

func ValidateLabels

func ValidateLabels(value interface{}, key string) (ws []string, es []error)

func ValidateName

func ValidateName(value interface{}, key string) (ws []string, es []error)

func ValidateTypeStringNullableInt

func ValidateTypeStringNullableInt(v interface{}, k string) (ws []string, es []error)

validateTypeStringNullableInt provides custom error messaging for TypeString ints Some arguments require an int value or unspecified, empty field.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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