wait

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Deprecated: StatusKeyActive is deprecated and will be removed after 14th November 2025. Use [kms.KEYSTATE_ACTIVE] instead.
	StatusKeyActive = "active"
	// Deprecated: StatusKeyNotReady is deprecated and will be removed after 14th November 2025. Use [kms.KEYSTATE_CREATING] instead.
	StatusKeyNotReady = "version_not_ready"
	// Deprecated: StatusKeyDeleted is deprecated and will be removed after 14th November 2025. Use [kms.KEYSTATE_DELETED] instead.
	StatusKeyDeleted = "deleted"
)
View Source
const (
	// Deprecated: StatusKeyVersionActive is deprecated and will be removed after 14th November 2025. Use [kms.VERSIONSTATE_ACTIVE] instead.
	StatusKeyVersionActive = "active"
	// Deprecated: StatusKeyVersionKeyMaterialNotReady is deprecated and will be removed after 14th November 2025. Use [kms.KEYSTATE_CREATING] instead.
	StatusKeyVersionKeyMaterialNotReady = "key_material_not_ready"
	// Deprecated: StatusKeyVersionKeyMaterialInvalid is deprecated and will be removed after 14th November 2025. Use [kms.VERSIONSTATE_KEY_MATERIAL_INVALID] instead.
	StatusKeyVersionKeyMaterialInvalid = "key_material_invalid"
	// Deprecated: StatusKeyVersionDisabled is deprecated and will be removed after 14th November 2025. Use [kms.VERSIONSTATE_DISABLED] instead.
	StatusKeyVersionDisabled = "disabled"
	// Deprecated: StatusKeyVersionDestroyed is deprecated and will be removed after 14th November 2025. Use [kms.VERSIONSTATE_DESTROYED] instead.
	StatusKeyVersionDestroyed = "destroyed"
)
View Source
const (
	// Deprecated: StatusWrappingKeyActive is deprecated and will be removed after 12th November 2025. Use [kms.WRAPPINGKEYSTATE_ACTIVE] instead.
	StatusWrappingKeyActive = "active"
	// Deprecated: StatusWrappingKeyKeyMaterialNotReady is deprecated and will be removed after 12th November 2025. Use [kms.VERSIONSTATE_CREATING] instead.
	StatusWrappingKeyKeyMaterialNotReady = "key_material_not_ready"
	// Deprecated: StatusWrappingKeyExpired is deprecated and will be removed after 12th November 2025. Use [kms.WRAPPINGKEYSTATE_EXPIRED] instead.
	StatusWrappingKeyExpired = "expired"
	// Deprecated: StatusWrappingKeyDeleting is deprecated and will be removed after 12th November 2025. Use [kms.WRAPPINGKEYSTATE_CREATING] instead.
	StatusWrappingKeyDeleting = "deleting"
)

Variables

This section is empty.

Functions

func CreateKeyRingWaitHandler added in v0.5.1

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

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)
	GetKeyRingExecute(ctx context.Context, projectId string, regionId string, keyRingId string) (*kms.KeyRing, 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