api_key

package
v0.11.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 (*Resource) Delete

func (*Resource) Metadata

func (r *Resource) Metadata(ctx context.Context, request resource.MetadataRequest, response *resource.MetadataResponse)

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

func (*Resource) UpgradeState added in v0.11.11

func (r *Resource) UpgradeState(context.Context) map[int64]resource.StateUpgrader

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

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.

func (RoleDescriptorsType) ValueType added in v0.11.18

func (t RoleDescriptorsType) ValueType(ctx context.Context) attr.Value

ValueType returns the Value type.

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

Type returns a RoleDescriptorsType.

func (RoleDescriptorsValue) WithDefaults added in v0.11.18

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL