Documentation
¶
Index ¶
Constants ¶
View Source
const ( KMSErrorTypeNil = KMSErrorType(iota) KMSErrorTypeUserInduced KMSErrorTypeThrottled KMSErrorTypeOther )
View Source
const ( StatusSuccess = "success" StatusFailure = "failure" StatusFailureThrottle = "failure-throttle" OperationEncrypt = "encrypt" OperationDecrypt = "decrypt" )
View Source
const ( DefaultHealthCheckPeriod = 30 * time.Second DefaultErrcBufSize = 100 )
TODO: make configurable
View Source
const StorageVersion = "1"
StorageVersion is a prefix used for versioning encrypted content
Variables ¶
This section is empty.
Functions ¶
func GetMillisecondsSince ¶
func GetStatusLabel ¶
Types ¶
type KMSErrorType ¶
type KMSErrorType int
func ParseError ¶
func ParseError(err error) (errorType KMSErrorType)
ParseError parses error codes from KMS ref. https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html ref. https://docs.aws.amazon.com/sdk-for-go/api/service/kms/
func (KMSErrorType) String ¶
func (t KMSErrorType) String() string
type KMSStorageVersion ¶
type KMSStorageVersion string
const (
KMSStorageVersionV2 KMSStorageVersion = "1"
)
Click to show internal directories.
Click to hide internal directories.