Documentation ¶
Index ¶
- func Bool(val any) (bool, error)
- func List[T any](val any) ([]T, error)
- func Map[T any](val any) (map[string]T, error)
- func ParseProto(val *providerpb.Value) (any, error)
- func String(val any) (string, error)
- func ToImmutableType(subTypeConvertFunc func(any) any) func(any) Immutable
- func ToType[T any](val any) any
- func ToValueProto(val any) (*providerpb.Value, error)
- type File
- type Identifier
- type Immutable
- type Operation
- type Resource
- type ResourceIdentifier
- type ResourceType
- type UpdateMaskField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseProto ¶
func ParseProto(val *providerpb.Value) (any, error)
func ToValueProto ¶
func ToValueProto(val any) (*providerpb.Value, error)
Types ¶
type Identifier ¶
func ParseIdentifier ¶
func ParseIdentifier(val any) (Identifier, error)
func ParseIdentifierProto ¶
func ParseIdentifierProto(id *providerpb.Identifier) (Identifier, error)
type Resource ¶
type Resource struct { Identifier Identifier Config any Attrs any }
func (Resource) ToResourceProto ¶
func (r Resource) ToResourceProto() (*providerpb.Resource, error)
type ResourceIdentifier ¶
type ResourceIdentifier interface { ResourceType() string ToValue() Identifier }
type ResourceType ¶
type ResourceType interface {
ToValue() any
}
type UpdateMaskField ¶
type UpdateMaskField struct { Name string SubFields []UpdateMaskField Operation Operation }
Click to show internal directories.
Click to hide internal directories.