Documentation
¶
Index ¶
- Variables
- func RequiresType(expectedType string) requiresTypeValidator
- func SetUnknownIfAccessHasChanges() planmodifier.String
- type Resource
- func (r *Resource) Configure(ctx context.Context, request resource.ConfigureRequest, ...)
- func (r Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) Metadata(ctx context.Context, request resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *Resource) UpgradeState(context.Context) map[int64]resource.StateUpgrader
- type RoleDescriptorsType
- func (t RoleDescriptorsType) Equal(o attr.Type) bool
- func (t RoleDescriptorsType) String() string
- func (t RoleDescriptorsType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
- func (t RoleDescriptorsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t RoleDescriptorsType) ValueType(ctx context.Context) attr.Value
- type RoleDescriptorsValue
Constants ¶
This section is empty.
Variables ¶
var ( MinVersion = version.Must(version.NewVersion("8.0.0")) // Enabled in 8.0 MinVersionWithUpdate = version.Must(version.NewVersion("8.4.0")) MinVersionReturningRoleDescriptors = version.Must(version.NewVersion("8.5.0")) MinVersionWithRestriction = version.Must(version.NewVersion("8.9.0")) // Enabled in 8.0 MinVersionWithCrossCluster = version.Must(version.NewVersion("8.10.0")) // Cross-cluster API keys enabled in 8.10 )
Functions ¶
func RequiresType ¶ added in v0.11.18
func RequiresType(expectedType string) requiresTypeValidator
RequiresType returns a validator which ensures that the configured attribute is only provided when the "type" attribute matches the expected value.
func SetUnknownIfAccessHasChanges ¶ added in v0.11.18
func SetUnknownIfAccessHasChanges() planmodifier.String
SetUnknownIfAccessHasChanges returns a plan modifier that sets the current attribute to unknown if the access attribute has changed between state and config for cross-cluster API keys.
Types ¶
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, req resource.CreateRequest, resp *resource.CreateResponse)
func (*Resource) Delete ¶
func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
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, req resource.ReadRequest, resp *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, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*Resource) UpgradeState ¶ added in v0.11.11
type RoleDescriptorsType ¶ added in v0.11.18
type RoleDescriptorsType struct {
jsontypes.NormalizedType
}
func (RoleDescriptorsType) Equal ¶ added in v0.11.18
func (t RoleDescriptorsType) Equal(o attr.Type) bool
Equal returns true if the given type is equivalent.
func (RoleDescriptorsType) String ¶ added in v0.11.18
func (t RoleDescriptorsType) String() string
String returns a human readable string of the type name.
func (RoleDescriptorsType) ValueFromString ¶ added in v0.11.18
func (t RoleDescriptorsType) ValueFromString(ctx context.Context, in basetypes.StringValue) (basetypes.StringValuable, diag.Diagnostics)
ValueFromString returns a StringValuable type given a StringValue.
func (RoleDescriptorsType) ValueFromTerraform ¶ added in v0.11.18
func (t RoleDescriptorsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
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 RoleDescriptorsValue ¶ added in v0.11.18
type RoleDescriptorsValue struct {
jsontypes.Normalized
}
func NewRoleDescriptorsNull ¶ added in v0.11.18
func NewRoleDescriptorsNull() RoleDescriptorsValue
NewRoleDescriptorsNull creates a RoleDescriptorsValue with a null value. Determine whether the value is null via IsNull method.
func NewRoleDescriptorsUnknown ¶ added in v0.11.18
func NewRoleDescriptorsUnknown() RoleDescriptorsValue
NewRoleDescriptorsUnknown creates a RoleDescriptorsValue with an unknown value. Determine whether the value is unknown via IsUnknown method.
func NewRoleDescriptorsValue ¶ added in v0.11.18
func NewRoleDescriptorsValue(value string) RoleDescriptorsValue
NewRoleDescriptorsValue creates a RoleDescriptorsValue with a known value. Access the value via ValueString method.
func (RoleDescriptorsValue) StringSemanticEquals ¶ added in v0.11.18
func (v RoleDescriptorsValue) 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 (RoleDescriptorsValue) Type ¶ added in v0.11.18
func (v RoleDescriptorsValue) Type(_ context.Context) attr.Type
Type returns a RoleDescriptorsType.
func (RoleDescriptorsValue) WithDefaults ¶ added in v0.11.18
func (v RoleDescriptorsValue) WithDefaults() (RoleDescriptorsValue, diag.Diagnostics)