attrs

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompositeIdType

func CompositeIdType(elemCount int) attr.Type

func NumericIdType

func NumericIdType[T sql.NumericObjectId]() attr.Type

func PermissionIdType

func PermissionIdType[T sql.NumericObjectId]() attr.Type

Types

type CompositeId

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

func CompositeIdValue

func CompositeIdValue(elems ...string) CompositeId

func (CompositeId) Equal

func (id CompositeId) Equal(value attr.Value) bool

func (CompositeId) GetInt

func (id CompositeId) GetInt(ctx context.Context, i int) int

func (CompositeId) GetString

func (id CompositeId) GetString(i int) string

func (CompositeId) IsNull

func (id CompositeId) IsNull() bool

func (CompositeId) IsUnknown

func (id CompositeId) IsUnknown() bool

func (CompositeId) String

func (id CompositeId) String() string

func (CompositeId) ToTerraformValue

func (id CompositeId) ToTerraformValue(context.Context) (tftypes.Value, error)

func (CompositeId) Type

func (id CompositeId) Type(context.Context) attr.Type

type NumericId

type NumericId[T sql.NumericObjectId] struct {
	CompositeId
}

func NumericIdValue

func NumericIdValue[T sql.NumericObjectId](id T) NumericId[T]

func (NumericId[T]) Id

func (id NumericId[T]) Id(ctx context.Context) T

type PermissionId

type PermissionId[T sql.NumericObjectId] struct {
	CompositeId
}

func PermissionIdValue

func PermissionIdValue[T sql.NumericObjectId](id T, permission string) PermissionId[T]

func (PermissionId[T]) ObjectId

func (id PermissionId[T]) ObjectId(ctx context.Context) T

func (PermissionId[T]) Permission

func (id PermissionId[T]) Permission() string

Jump to

Keyboard shortcuts

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