kmsplugin

package
v0.0.0-...-0ede4e5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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 GetMillisecondsSince(startTime time.Time) float64

func GetStatusLabel

func GetStatusLabel(err error) string

Types

type KMSErrorType

type KMSErrorType int

func (KMSErrorType) String

func (t KMSErrorType) String() string

type KMSStorageVersion

type KMSStorageVersion string
const (
	KMSStorageVersionV2 KMSStorageVersion = "1"
)

Jump to

Keyboard shortcuts

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