types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolTypeOrNil

func BoolTypeOrNil(b *bool) types.Bool

Get a types.Bool from the given bool pointer, handling if the pointer is nil

func Contains

func Contains(slice []attr.Value, value attr.Value) bool

Check if an attribute slice contains a value

func EmptySet added in v1.0.0

func EmptySet(elementType attr.Type) types.Set

func EmptySetDefault added in v1.0.0

func EmptySetDefault(elementType attr.Type) defaults.Set

func Float64TypeOrNil added in v0.2.0

func Float64TypeOrNil(f *float64) types.Float64

Get a types.Float64 from the given float64 pointer, handling if the pointer is nil

func GetInt64Set

func GetInt64Set(values []int64) types.Set

Get a types.Set from a slice of int64

func GetStringSet

func GetStringSet(values []string) types.Set

Get a types.Set from a slice of strings

func Int64ToString

func Int64ToString(value types.Int64) string

Convert a int64 to string

func Int64TypeOrNil

func Int64TypeOrNil(i *int64) types.Int64

Get a types.Int64 from the given int64 pointer, handling if the pointer is nil

func IsDefined

func IsDefined(value attr.Value) bool

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

func IsEmptyString

func IsEmptyString(str types.String) bool

Return true if this types.String represents an empty (but non-null and non-unknown) string

func IsNonEmptyString

func IsNonEmptyString(str types.String) bool

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

func ObjectsAttrTypes added in v0.10.0

func ObjectsAttrTypes() map[string]attr.Type

func ObjectsObjectType added in v0.10.0

func ObjectsObjectType() types.ObjectType

func SetsEqual

func SetsEqual(a, b []string) bool

Check if two slices representing sets are equal

func StringSliceContains added in v0.2.0

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

Check if a string slice contains a value

func StringTypeOrNil

func StringTypeOrNil(str *string, useEmptyStringForNil bool) types.String

Get a types.String from the given string pointer, handling if the pointer is nil

Types

type ProviderConfiguration

type ProviderConfiguration struct {
	HttpsHost      string
	Username       string
	Password       string
	ProductVersion string
}

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