stringset

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceAttribute

func ResourceAttribute(desc, markdownDesc string) schema.SetAttribute

ResourceAttribute returns a resource schema attribute for string set.

Types

type Type

type Type struct {
	basetypes.SetType
}

Type defines the type for string set.

func (Type) Equal

func (t Type) Equal(o attr.Type) bool

Equal returns true if the two types are equal.

func (Type) String

func (t Type) String() string

String returns a string representation of the type.

func (Type) ValueFromSet

ValueFromSet converts the set value to a SetValuable type.

func (Type) ValueFromTerraform

func (t Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

ValueFromTerraform converts the Terraform value to a NewValue type.

func (Type) ValueType

func (t Type) ValueType(_ context.Context) attr.Value

ValueType returns the underlying value type.

type Value

type Value struct {
	basetypes.SetValue
}

Value defines the value for string set.

func NewValue

func NewValue(str *string, diags *diag.Diagnostics) Value

NewValue converts a string of items to a new string set value.

func (Value) Equal

func (v Value) Equal(o attr.Value) bool

Equal returns true if the two values are equal.

func (Value) Type

func (v Value) Type(_ context.Context) attr.Type

Type returns the type of the value.

func (Value) ValueStringPointer

func (v Value) ValueStringPointer(ctx context.Context, diags *diag.Diagnostics) *string

ValueStringPointer returns a pointer to the string representation of string set value.

Jump to

Keyboard shortcuts

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