utils

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToGb added in v0.0.8

func BytesToGb(b int64) int64

func BytesToMb added in v0.0.8

func BytesToMb(b int64) int64

func Contains added in v0.0.2

func Contains(s []int, e int) bool

func Float32ToInt64 added in v0.0.4

func Float32ToInt64(f float32) int64

func FormId added in v0.0.4

func FormId(node string, name string) string

func GbToBytes added in v0.0.8

func GbToBytes(g int64) int64

func ListContains added in v0.0.5

func ListContains(s []string, str string) bool

func ListTypeToStringSlice added in v0.0.8

func ListTypeToStringSlice(l types.List) []string

func LoadPlanAndState

func LoadPlanAndState(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, plan any, state any) (any, any, error)

func MarshalSafe added in v0.0.8

func MarshalSafe(i interface{}) string

func OptionaInt64ToPointerInt added in v0.0.8

func OptionaInt64ToPointerInt(i64 int64) *int

func OptionaToPointerInt64 added in v0.0.8

func OptionaToPointerInt64(i64 int64) *int64

func OptionalToPointerBool added in v0.0.2

func OptionalToPointerBool(b bool) *bool

func OptionalToPointerString

func OptionalToPointerString(s string) *string

func PtrStringToString

func PtrStringToString(s *string) string

func SetTypeToStringSlice added in v0.0.8

func SetTypeToStringSlice(l types.Set) []string

func StringToTfType added in v0.0.8

func StringToTfType(s *string) types.String

func UnpackId added in v0.0.4

func UnpackId(id string) (string, string, error)

func UnpackList added in v0.0.5

func UnpackList(l []string) []types.String

func UnpackListType added in v0.0.6

func UnpackListType(l []string) types.List

func UnpackSetType added in v0.0.8

func UnpackSetType(l []string) types.Set

Types

This section is empty.

Jump to

Keyboard shortcuts

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