types

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeyValToMapStringAttrType added in v0.4.0

func AddKeyValToMapStringAttrType(mapStringAttrType map[string]attr.Type, key string, val attr.Type) map[string]attr.Type

Add a keyval pair to existing map[string]attr.Type, making a deep copy and not modifying the original

func ConvertToPrimitive

func ConvertToPrimitive(value attr.Value) interface{}

func FloatSlicesEqual added in v0.4.0

func FloatSlicesEqual(a, b []float64) bool

Check if two float slices representing sets are equal

func GetStringList added in v0.2.0

func GetStringList(values []string) types.List

Get a types.List from a slice of string

func GetStringSet

func GetStringSet(values []string) types.Set

Get a types.Set from a slice of string

func IsDefined

func IsDefined(value attr.Value) bool

Return true if this value represents a defined (non-null and non-unknown) value

func IsNonEmptyObj

func IsNonEmptyObj(obj types.Object) bool

func IsNonEmptyString

func IsNonEmptyString(str types.String) bool

Return true if this types.String represents a non-empty, non-null, non-unknown string

func MatchStringInSets

func MatchStringInSets(a, b []string) *string

Compare two given sets, match string if found in both

func SetTypeToStringSlice added in v0.4.0

func SetTypeToStringSlice(set types.Set) []string

func StringSliceContains

func StringSliceContains(slice []string, value string) bool

Check if a string slice contains a value

func StringSlicesEqual added in v0.4.0

func StringSlicesEqual(a, b []string) bool

Check if two slices representing sets are equal

func UnderscoresToCamelCase

func UnderscoresToCamelCase(s string) string

Types

type ProviderConfiguration

type ProviderConfiguration struct {
	HttpsHost      string
	Transport      *http.Transport
	Username       *string
	Password       *string
	AccessToken    *string
	TokenUrl       *string
	ClientId       *string
	ClientSecret   *string
	Scopes         []string
	ProductVersion version.SupportedVersion
}

Configuration used by the provider and resources

type ResourceConfiguration

type ResourceConfiguration struct {
	ProviderConfig ProviderConfiguration
	ApiClient      *client.APIClient
}

Configuration passed to resources

Jump to

Keyboard shortcuts

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