Documentation
¶
Index ¶
- Variables
- type ConfigType
- func (t ConfigType) Equal(o attr.Type) bool
- func (t ConfigType) String() string
- func (t ConfigType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t ConfigType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ConfigType) ValueType(ctx context.Context) attr.Value
- type ConfigValue
- func (v ConfigValue) Equal(o attr.Value) bool
- func (v ConfigValue) SanitizedValue() (string, diag.Diagnostics)
- func (v ConfigValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
- func (v ConfigValue) Type(_ context.Context) attr.Type
- func (t ConfigValue) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, ...)
- type Resource
- func (r *Resource) Configure(ctx context.Context, request resource.ConfigureRequest, ...)
- func (r *Resource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *Resource) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *Resource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(ctx context.Context, request resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, request resource.UpdateRequest, ...)
Constants ¶
This section is empty.
Variables ¶
var (
MinVersionSupportingPreconfiguredIDs = version.Must(version.NewVersion("8.8.0"))
)
Functions ¶
This section is empty.
Types ¶
type ConfigType ¶
type ConfigType struct {
jsontypes.NormalizedType
}
func (ConfigType) Equal ¶
func (t ConfigType) Equal(o attr.Type) bool
Equal returns true if the given type is equivalent.
func (ConfigType) String ¶
func (t ConfigType) String() string
String returns a human readable string of the type name.
func (ConfigType) ValueFromString ¶
func (t ConfigType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
ValueFromString returns a StringValuable type given a StringValue.
func (ConfigType) ValueFromTerraform ¶
ValueFromTerraform returns a Value given a tftypes.Value. This is meant to convert the tftypes.Value into a more convenient Go type for the provider to consume the data with.
type ConfigValue ¶
type ConfigValue struct { jsontypes.Normalized // contains filtered or unexported fields }
func NewConfigNull ¶
func NewConfigNull() ConfigValue
NewConfigNull creates a ConfigValue with a null value. Determine whether the value is null via IsNull method.
func NewConfigUnknown ¶
func NewConfigUnknown() ConfigValue
NewConfigUnknown creates a ConfigValue with an unknown value. Determine whether the value is unknown via IsUnknown method.
func NewConfigValueWithConnectorID ¶
func NewConfigValueWithConnectorID(value string, connectorTypeID string) (ConfigValue, diag.Diagnostics)
NewConfigValueWithConnectorID creates a ConfigValue with a known value and a connector type ID. Access the value via ValueString method.
func (ConfigValue) Equal ¶
func (v ConfigValue) Equal(o attr.Value) bool
Equal returns true if the given value is equivalent.
func (ConfigValue) SanitizedValue ¶
func (v ConfigValue) SanitizedValue() (string, diag.Diagnostics)
func (ConfigValue) StringSemanticEquals ¶
func (v ConfigValue) StringSemanticEquals(ctx context.Context, newValuable basetypes.StringValuable) (bool, diag.Diagnostics)
StringSemanticEquals returns true if the given config object value is semantically equal to the current config object value. The comparison will ignore any default values present in one value, but unset in the other.
func (ConfigValue) Type ¶
func (v ConfigValue) Type(_ context.Context) attr.Type
Type returns a ConfigType.
func (ConfigValue) ValidateAttribute ¶
func (t ConfigValue) ValidateAttribute(ctx context.Context, req xattr.ValidateAttributeRequest, resp *xattr.ValidateAttributeResponse)
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Configure ¶
func (r *Resource) Configure(ctx context.Context, request resource.ConfigureRequest, response *resource.ConfigureResponse)
func (*Resource) Create ¶
func (r *Resource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)
func (*Resource) ImportState ¶
func (r *Resource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*Resource) Metadata ¶
func (r *Resource) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)
func (*Resource) Read ¶
func (r *Resource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)
func (*Resource) Schema ¶
func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*Resource) Update ¶
func (r *Resource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)