identity

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameAccountID = "account_id"
	NameRegion    = "region"
)

Variables

This section is empty.

Functions

func ValueAsString added in v1.57.0

func ValueAsString(ctx context.Context, v attr.Value) string

Types

type Identifier

type Identifier struct {
	Name              string
	Description       string
	RequiredForImport bool
}

Identifier represents a generic identifier with a name and an optional description.

type Identifiers

type Identifiers []Identifier

func (Identifiers) AppendDefaults added in v1.57.0

func (a Identifiers) AppendDefaults(isGlobal bool) Identifiers

AppendDefaults appends default identifiers based on whether the resource is global or regional.

func (Identifiers) SetIdentity added in v1.57.0

func (a Identifiers) SetIdentity(ctx context.Context, provider cloudcontrol.Provider, state, identity IdentitySetter) diag.Diagnostics

SetIdentity sets the identity in state using the primary identifiers.

type IdentitySetter added in v1.57.0

type IdentitySetter interface {
	GetAttribute(context.Context, path.Path, any) diag.Diagnostics
	SetAttribute(context.Context, path.Path, any) diag.Diagnostics
}

IdentitySetter is an interface for setting identity attributes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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