types

package
v1.2.3-0...-a43c9a2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PGPPublicKeyType pgpPublicKeyType = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PGPPublicKey

type PGPPublicKey struct {
	// contains filtered or unexported fields
}

func PGPPublicKeyNull

func PGPPublicKeyNull() PGPPublicKey

func PGPPublicKeyUnknown

func PGPPublicKeyUnknown() PGPPublicKey

func PGPPublicKeyValue

func PGPPublicKeyValue(value string) PGPPublicKey

func (PGPPublicKey) Equal

func (k PGPPublicKey) Equal(other attr.Value) bool

Equal returns true if `other` is a *PGPPublicKey and has the same value as `d`.

func (PGPPublicKey) IsNull

func (k PGPPublicKey) IsNull() bool

IsNull returns true if the Value is not set, or is explicitly set to null.

func (PGPPublicKey) IsUnknown

func (k PGPPublicKey) IsUnknown() bool

IsUnknown returns true if the Value is not yet known.

func (PGPPublicKey) String

func (k PGPPublicKey) String() string

String returns a summary representation of either the underlying Value, or UnknownValueString (`<unknown>`) when IsUnknown() returns true, or NullValueString (`<null>`) when IsNull() return true.

This is an intentionally lossy representation, that are best suited for logging and error reporting, as they are not protected by compatibility guarantees within the framework.

func (PGPPublicKey) StringSemanticEquals

func (k PGPPublicKey) StringSemanticEquals(ctx context.Context, other basetypes.StringValuable) (bool, diag.Diagnostics)

StringSemanticEquals should return true if the given value is semantically equal to the current value. This logic is used to prevent Terraform data consistency errors and resource drift where a value change may have inconsequential differences, such as spacing character removal in JSON formatted strings.

Only known values are compared with this method as changing a value's state implicitly represents a different value.

func (PGPPublicKey) ToStringValue

func (k PGPPublicKey) ToStringValue(ctx context.Context) (types.String, diag.Diagnostics)

ToStringValue should convert the value type to a String.

func (PGPPublicKey) ToTerraformValue

func (k PGPPublicKey) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

ToTerraformValue returns the data contained in the *String as a string. If Unknown is true, it returns a tftypes.UnknownValue. If Null is true, it returns nil.

func (PGPPublicKey) Type

func (k PGPPublicKey) Type(_ context.Context) attr.Type

Type returns a PGPPublicKeyType.

func (PGPPublicKey) ValuePGPPublicKey

func (k PGPPublicKey) ValuePGPPublicKey() string

ValuePGPPublicKey returns the known string value. If PGPPublicKey is null or unknown, returns "".

Jump to

Keyboard shortcuts

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