Documentation
¶
Index ¶
- func Attributes(ctx context.Context, opts Opts) tfsdk.Attribute
- func AttributesAll(ctx context.Context) tfsdk.Attribute
- func Block(ctx context.Context, opts Opts) tfsdk.Block
- func BlockAll(ctx context.Context) tfsdk.Block
- func Create(ctx context.Context, obj types.Object, def time.Duration) time.Duration
- func Delete(ctx context.Context, obj types.Object, def time.Duration) time.Duration
- func Read(ctx context.Context, obj types.Object, def time.Duration) time.Duration
- func Update(ctx context.Context, obj types.Object, def time.Duration) time.Duration
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attributes ¶
Attributes returns a tfsdk.Attribute containing a tfsdk.SingleNestedAttributes which contains attributes for each of the fields in Opts which are set to true. Each attribute is defined as types.StringType and optional. A validator is used to verify that the value assigned to an attribute can be parsed as time.Duration.
func AttributesAll ¶
AttributesAll returns a tfsdk.Attribute containing a tfsdk.SingleNestedAttributes which contains attributes for each of create, read, update and delete. Each attribute is defined as types.StringType and optional. A validator is used to verify that the value assigned to an attribute can be parsed as time.Duration.
func Block ¶
Block returns a tfsdk.Block containing attributes for each of the fields in Opts which are set to true. Each attribute is defined as types.StringType and optional. A validator is used to verify that the value assigned to an attribute can be parsed as time.Duration.
func BlockAll ¶
BlockAll returns a tfsdk.Block containing attributes for each of create, read, update and delete. Each attribute is defined as types.StringType and optional. A validator is used to verify that the value assigned to an attribute can be parsed as time.Duration.
func Create ¶
Create interrogates the supplied types.Object and if the object.Attrs contains an entry for "create" that can be parsed then time.Duration is returned. If object.Attrs does not contain "create" the supplied default will be returned.
func Delete ¶
Delete interrogates the supplied types.Object and if the object.Attrs contains an entry for "delete" that can be parsed then time.Duration is returned. If object.Attrs does not contain "delete" the supplied default will be returned.
func Read ¶
Read interrogates the supplied types.Object and if the object.Attrs contains an entry for "read" that can be parsed then time.Duration is returned. If object.Attrs does not contain "read" the supplied default will be returned.