Documentation ¶
Index ¶
- func CompositeIdType(elemCount int) attr.Type
- func NumericIdType[T sql.NumericObjectId]() attr.Type
- func PermissionIdType[T sql.NumericObjectId]() attr.Type
- type CompositeId
- func (id CompositeId) Equal(value attr.Value) bool
- func (id CompositeId) GetInt(ctx context.Context, i int) int
- func (id CompositeId) GetString(i int) string
- func (id CompositeId) IsNull() bool
- func (id CompositeId) IsUnknown() bool
- func (id CompositeId) String() string
- func (id CompositeId) ToTerraformValue(context.Context) (tftypes.Value, error)
- func (id CompositeId) Type(context.Context) attr.Type
- type NumericId
- type PermissionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompositeIdType ¶
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) 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 ¶
type NumericId ¶
type NumericId[T sql.NumericObjectId] struct { CompositeId }
func NumericIdValue ¶
func NumericIdValue[T sql.NumericObjectId](id T) NumericId[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
Click to show internal directories.
Click to hide internal directories.