types

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

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

ValueFromString converts a string value to a StringValuable.

func (IPAddrType) ValueFromTerraform

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

ValueFromTerraform converts a Terraform value to a StringValuable.

func (IPAddrType) ValueType

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

ValueType returns the underlying value type.

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.

func (IPAddrValue) Equal

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

Equal returns true if the two values are equal.

func (IPAddrValue) Type

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

Type returns the type of the value.

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

ValueFromString converts a string value to a StringValuable.

func (IPCIDRType) ValueFromTerraform

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

ValueFromTerraform converts a Terraform value to a StringValuable.

func (IPCIDRType) ValueType

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

ValueType returns the underlying value type.

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.

func (IPCIDRValue) Equal

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

Equal returns true if the two values are equal.

func (IPCIDRValue) Type

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

Type returns the type of the value.

Jump to

Keyboard shortcuts

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