wait

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StatusKeyActive   = "active"
	StatusKeyNotReady = "version_not_ready"
	StatusKeyDeleted  = "deleted"
)
View Source
const (
	StatusKeyVersionActive              = "active"
	StatusKeyVersionKeyMaterialNotReady = "key_material_not_ready"
	StatusKeyVersionKeyMaterialInvalid  = "key_material_invalid"
	StatusKeyVersionDisabled            = "disabled"
	StatusKeyVersionDestroyed           = "destroyed"
)
View Source
const (
	StatusWrappingKeyActive              = "active"
	StatusWrappingKeyKeyMaterialNotReady = "key_material_not_ready"
	StatusWrappingKeyExpired             = "expired"
	StatusWrappingKeyDeleting            = "deleting"
)

Variables

This section is empty.

Functions

func CreateOrUpdateKeyWaitHandler

func CreateOrUpdateKeyWaitHandler(ctx context.Context, client ApiKmsClient, projectId, region, keyRingId, keyId string) *wait.AsyncActionHandler[kms.Key]

func CreateWrappingKeyWaitHandler

func CreateWrappingKeyWaitHandler(ctx context.Context, client ApiKmsClient, projectId, region, keyRingId, wrappingKeyId string) *wait.AsyncActionHandler[kms.WrappingKey]

func DeleteKeyWaitHandler

func DeleteKeyWaitHandler(ctx context.Context, client ApiKmsClient, projectId, region, keyRingId, keyId string) *wait.AsyncActionHandler[kms.Key]

func DisableKeyVersionWaitHandler

func DisableKeyVersionWaitHandler(ctx context.Context, client ApiKmsClient, projectId, region, keyRingId, keyId string, version int64) *wait.AsyncActionHandler[kms.Version]

func EnableKeyVersionWaitHandler

func EnableKeyVersionWaitHandler(ctx context.Context, client ApiKmsClient, projectId, region, keyRingId, keyId string, version int64) *wait.AsyncActionHandler[kms.Version]

Types

type ApiKmsClient

type ApiKmsClient interface {
	GetKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*kms.Key, error)
	GetVersionExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string, versionNumber int64) (*kms.Version, error)
	GetWrappingKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, wrappingKeyId string) (*kms.WrappingKey, error)
}

Jump to

Keyboard shortcuts

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