Documentation
¶
Index ¶
- func Attribute(ctx context.Context, name string, attr schema.Attribute, ...) (*tfprotov6.SchemaAttribute, error)
- func IsCreate(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest, ...) (bool, error)
- func IsDestroy(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest, ...) (bool, error)
- func IsUpdate(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest, ...) (bool, error)
- func Schema(ctx context.Context, s schema.Schema) (*tfprotov6.Schema, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attribute ¶
func Attribute(ctx context.Context, name string, attr schema.Attribute, path *tftypes.AttributePath) (*tfprotov6.SchemaAttribute, error)
Attribute returns the *tfprotov6.SchemaAttribute equivalent of a schema.Attribute. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.
func IsCreate ¶
func IsCreate(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest, typ tftypes.Type) (bool, error)
IsCreate returns true if the request is creating a resource.
func IsDestroy ¶
func IsDestroy(ctx context.Context, req *tfprotov6.ApplyResourceChangeRequest, typ tftypes.Type) (bool, error)
IsDestroy returns true if the request is deleting a resource.
Types ¶
This section is empty.