api_key

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 27 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

Jump to

Keyboard shortcuts

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