Documentation
¶
Index ¶
- Constants
- func CreateOrUpdateKeyWaitHandler(ctx context.Context, client ApiKmsClient, ...) *wait.AsyncActionHandler[kms.Key]
- func CreateWrappingKeyWaitHandler(ctx context.Context, client ApiKmsClient, ...) *wait.AsyncActionHandler[kms.WrappingKey]
- func DeleteKeyWaitHandler(ctx context.Context, client ApiKmsClient, ...) *wait.AsyncActionHandler[kms.Key]
- func DisableKeyVersionWaitHandler(ctx context.Context, client ApiKmsClient, ...) *wait.AsyncActionHandler[kms.Version]
- func EnableKeyVersionWaitHandler(ctx context.Context, client ApiKmsClient, ...) *wait.AsyncActionHandler[kms.Version]
- type ApiKmsClient
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)
}
Click to show internal directories.
Click to hide internal directories.