customtypes

package
v0.79.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPv46Address

type IPv46Address struct {
	basetypes.StringValue
}

func NewIPv46AddressNull

func NewIPv46AddressNull() IPv46Address

func NewIPv46AddressPointerValue

func NewIPv46AddressPointerValue(value *string) IPv46Address

func NewIPv46AddressUnknown

func NewIPv46AddressUnknown() IPv46Address

func NewIPv46AddressValue

func NewIPv46AddressValue(value string) IPv46Address

func NewIPv46PrefixIpValue added in v0.70.0

func NewIPv46PrefixIpValue(value net.IP) IPv46Address

func (IPv46Address) Equal

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

func (IPv46Address) Is4 added in v0.70.0

func (v IPv46Address) Is4() bool

func (IPv46Address) Is6 added in v0.70.0

func (v IPv46Address) Is6() bool

func (IPv46Address) StringSemanticEquals

func (v IPv46Address) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (IPv46Address) Type

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

func (IPv46Address) ValidateAttribute added in v0.60.0

func (IPv46Address) ValueIPv46Address

func (v IPv46Address) ValueIPv46Address() (netip.Addr, diag.Diagnostics)

type IPv46AddressType

type IPv46AddressType struct {
	basetypes.StringType
}

func (IPv46AddressType) Equal

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

Equal returns true if the given type is equivalent.

func (IPv46AddressType) String

func (t IPv46AddressType) String() string

String returns a human readable string of the type name.

func (IPv46AddressType) ValueFromString

ValueFromString returns a StringValuable type given a StringValue.

func (IPv46AddressType) ValueFromTerraform

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

ValueFromTerraform returns a Value given a tftypes.Value. This is meant to convert the tftypes.Value into a more convenient Go type for the provider to consume the data with.

func (IPv46AddressType) ValueType

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

ValueType returns the Value type.

type IPv46Prefix added in v0.70.0

type IPv46Prefix struct {
	basetypes.StringValue
}

func NewIPv46PrefixNetPointerValue added in v0.70.0

func NewIPv46PrefixNetPointerValue(value *net.IPNet) IPv46Prefix

func NewIPv46PrefixNull added in v0.70.0

func NewIPv46PrefixNull() IPv46Prefix

func NewIPv46PrefixPointerValue added in v0.70.0

func NewIPv46PrefixPointerValue(value *string) IPv46Prefix

func NewIPv46PrefixUnknown added in v0.70.0

func NewIPv46PrefixUnknown() IPv46Prefix

func NewIPv46PrefixValue added in v0.70.0

func NewIPv46PrefixValue(value string) IPv46Prefix

func (IPv46Prefix) Equal added in v0.70.0

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

func (IPv46Prefix) Is4 added in v0.70.0

func (v IPv46Prefix) Is4() bool

func (IPv46Prefix) Is6 added in v0.70.0

func (v IPv46Prefix) Is6() bool

func (IPv46Prefix) StringSemanticEquals added in v0.70.0

func (v IPv46Prefix) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

func (IPv46Prefix) Type added in v0.70.0

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

func (IPv46Prefix) ValidateAttribute added in v0.70.0

func (IPv46Prefix) ValueIPv46Prefix added in v0.70.0

func (v IPv46Prefix) ValueIPv46Prefix() (netip.Prefix, diag.Diagnostics)

type IPv46PrefixType added in v0.70.0

type IPv46PrefixType struct {
	basetypes.StringType
}

func (IPv46PrefixType) Equal added in v0.70.0

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

Equal returns true if the given type is equivalent.

func (IPv46PrefixType) String added in v0.70.0

func (t IPv46PrefixType) String() string

String returns a human readable string of the type name.

func (IPv46PrefixType) ValueFromString added in v0.70.0

ValueFromString returns a StringValuable type given a StringValue.

func (IPv46PrefixType) ValueFromTerraform added in v0.70.0

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

ValueFromTerraform returns a Value given a tftypes.Value. This is meant to convert the tftypes.Value into a more convenient Go type for the provider to consume the data with.

func (IPv46PrefixType) ValueType added in v0.70.0

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

ValueType returns the Value type.

type StringWithAltValues added in v0.79.0

type StringWithAltValues struct {
	basetypes.StringValue
	// contains filtered or unexported fields
}

func NewStringWithAltValuesNull added in v0.79.0

func NewStringWithAltValuesNull() StringWithAltValues

func NewStringWithAltValuesUnknown added in v0.79.0

func NewStringWithAltValuesUnknown() StringWithAltValues

func NewStringWithAltValuesValue added in v0.79.0

func NewStringWithAltValuesValue(value string, alt ...string) StringWithAltValues

func (StringWithAltValues) Equal added in v0.79.0

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

func (StringWithAltValues) StringSemanticEquals added in v0.79.0

func (v StringWithAltValues) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)

StringSemanticEquals implements the semantic equality check. According to this (https://discuss.hashicorp.com/t/can-semantic-equality-check-in-custom-types-be-asymmetrical/60644/2?u=hqnvylrx) semantic equality checks on custom types are always implementeed as oldValue.SemanticEquals(ctx, newValue)

func (StringWithAltValues) Type added in v0.79.0

type StringWithAltValuesType added in v0.79.0

type StringWithAltValuesType struct {
	basetypes.StringType
}

func (StringWithAltValuesType) Equal added in v0.79.0

Equal returns true if the given type is equivalent.

func (StringWithAltValuesType) String added in v0.79.0

func (t StringWithAltValuesType) String() string

String returns a human readable string of the type name.

func (StringWithAltValuesType) ValueFromString added in v0.79.0

ValueFromString returns a StringValuable type given a StringValue.

func (StringWithAltValuesType) ValueFromTerraform added in v0.79.0

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

ValueFromTerraform returns a Value given a tftypes.Value. This is meant to convert the tftypes.Value into a more convenient Go type for the provider to consume the data with.

func (StringWithAltValuesType) ValueType added in v0.79.0

ValueType returns the Value type.

Jump to

Keyboard shortcuts

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