Documentation ¶
Index ¶
- type IPv46Address
- func (v IPv46Address) Equal(o attr.Value) bool
- func (v IPv46Address) Is4() bool
- func (v IPv46Address) Is6() bool
- func (v IPv46Address) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
- func (v IPv46Address) Type(_ context.Context) attr.Type
- func (v IPv46Address) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- func (v IPv46Address) ValueIPv46Address() (netip.Addr, diag.Diagnostics)
- type IPv46AddressType
- func (t IPv46AddressType) Equal(o attr.Type) bool
- func (t IPv46AddressType) String() string
- func (t IPv46AddressType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t IPv46AddressType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t IPv46AddressType) ValueType(_ context.Context) attr.Value
- type IPv46Prefix
- func (v IPv46Prefix) Equal(o attr.Value) bool
- func (v IPv46Prefix) Is4() bool
- func (v IPv46Prefix) Is6() bool
- func (v IPv46Prefix) StringSemanticEquals(_ context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
- func (v IPv46Prefix) Type(_ context.Context) attr.Type
- func (v IPv46Prefix) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- func (v IPv46Prefix) ValueIPv46Prefix() (netip.Prefix, diag.Diagnostics)
- type IPv46PrefixType
- func (t IPv46PrefixType) Equal(o attr.Type) bool
- func (t IPv46PrefixType) String() string
- func (t IPv46PrefixType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t IPv46PrefixType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t IPv46PrefixType) ValueType(_ context.Context) attr.Value
- type StringWithAltValues
- type StringWithAltValuesType
- func (t StringWithAltValuesType) Equal(o attr.Type) bool
- func (t StringWithAltValuesType) String() string
- func (t StringWithAltValuesType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t StringWithAltValuesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t StringWithAltValuesType) ValueType(_ context.Context) attr.Value
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) 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) ValidateAttribute ¶ added in v0.60.0
func (v IPv46Address) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
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 ¶
func (t IPv46AddressType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
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.
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) 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) ValidateAttribute ¶ added in v0.70.0
func (v IPv46Prefix) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
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
func (t IPv46PrefixType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
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.
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)
type StringWithAltValuesType ¶ added in v0.79.0
type StringWithAltValuesType struct {
basetypes.StringType
}
func (StringWithAltValuesType) Equal ¶ added in v0.79.0
func (t StringWithAltValuesType) Equal(o attr.Type) bool
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
func (t StringWithAltValuesType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
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.