Documentation ¶
Index ¶
- type IPAddrType
- func (t IPAddrType) Equal(o attr.Type) bool
- func (t IPAddrType) String() string
- func (t IPAddrType) Validate(_ context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics
- func (t IPAddrType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t IPAddrType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t IPAddrType) ValueType(_ context.Context) attr.Value
- type IPAddrValue
- type IPCIDRType
- func (t IPCIDRType) Equal(o attr.Type) bool
- func (t IPCIDRType) String() string
- func (t IPCIDRType) Validate(_ context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics
- func (t IPCIDRType) ValueFromString(_ context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t IPCIDRType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t IPCIDRType) ValueType(_ context.Context) attr.Value
- type IPCIDRValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAddrType ¶
type IPAddrType struct {
basetypes.StringType
}
IPAddrType is a type that represents an IP address.
func (IPAddrType) Equal ¶
func (t IPAddrType) Equal(o attr.Type) bool
Equal returns true if the two types are equal.
func (IPAddrType) String ¶
func (t IPAddrType) String() string
String returns a string representation of the type.
func (IPAddrType) Validate ¶
func (t IPAddrType) Validate(_ context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics
Validate ensures the value is valid IP address.
func (IPAddrType) ValueFromString ¶
func (t IPAddrType) ValueFromString( _ context.Context, in basetypes.StringValue, ) (basetypes.StringValuable, diag.Diagnostics)
ValueFromString converts a string value to a StringValuable.
func (IPAddrType) ValueFromTerraform ¶
ValueFromTerraform converts a Terraform value to a StringValuable.
type IPAddrValue ¶
type IPAddrValue struct {
basetypes.StringValue
}
IPAddrValue is a type that represents an IP address value.
func NewIPAddrPointerValue ¶
func NewIPAddrPointerValue(value *string) IPAddrValue
NewIPAddrPointerValue returns a new IPAddrValue from a string pointer.
type IPCIDRType ¶
type IPCIDRType struct {
basetypes.StringType
}
IPCIDRType is a type that represents an IP address in CIDR notation.
func (IPCIDRType) Equal ¶
func (t IPCIDRType) Equal(o attr.Type) bool
Equal returns true if the two types are equal.
func (IPCIDRType) String ¶
func (t IPCIDRType) String() string
String returns a string representation of the type.
func (IPCIDRType) Validate ¶
func (t IPCIDRType) Validate(_ context.Context, value tftypes.Value, valuePath path.Path) diag.Diagnostics
Validate ensures the value is valid IP address in CIDR notation.
func (IPCIDRType) ValueFromString ¶
func (t IPCIDRType) ValueFromString( _ context.Context, in basetypes.StringValue, ) (basetypes.StringValuable, diag.Diagnostics)
ValueFromString converts a string value to a StringValuable.
func (IPCIDRType) ValueFromTerraform ¶
ValueFromTerraform converts a Terraform value to a StringValuable.
type IPCIDRValue ¶
type IPCIDRValue struct {
basetypes.StringValue
}
IPCIDRValue is a type that represents an IP address in CIDR notation.
func NewIPCIDRPointerValue ¶
func NewIPCIDRPointerValue(value *string) IPCIDRValue
NewIPCIDRPointerValue returns a new IPCIDRValue from a string pointer.