handler

package
v0.0.0-...-e4d9425 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateDataKeyPairResponse

type GenerateDataKeyPairResponse struct {
	KeyId                    string
	KeyPairSpec              string
	PrivateKeyCiphertextBlob []byte
	PrivateKeyPlaintext      []byte `json:",omitempty"`
	PublicKey                []byte
}

type GenerateDataKeyResponse

type GenerateDataKeyResponse struct {
	KeyId          string
	Plaintext      []byte `json:",omitempty"`
	CiphertextBlob []byte
}

type ImportKeyMaterialInput

type ImportKeyMaterialInput struct {
	KeyId                *string
	ImportToken          []byte
	EncryptedKeyMaterial []byte
	ExpirationModel      *string
	// We override this from
	// ValidTo *time.Time `type:"timestamp"`
	// as json.Decode doesn't like epochs
	ValidTo *int64
}

Using custom struct to be able to decode ValidTo as simple Int64. Alternative would be custom type and marshal/unmarshal functions (again not possible using the type from the AWS library)

type ParametersForImportResponse

type ParametersForImportResponse struct {
	KeyId             string
	ParametersValidTo int64
	ImportToken       string
	PublicKey         string
}

type RequestHandler

type RequestHandler struct {
	// contains filtered or unexported fields
}

func NewRequestHandler

func NewRequestHandler(r *http.Request, l *log.Logger, d *data.Database) *RequestHandler

func (*RequestHandler) CancelKeyDeletion

func (r *RequestHandler) CancelKeyDeletion() Response

func (*RequestHandler) CreateAlias

func (r *RequestHandler) CreateAlias() Response

func (*RequestHandler) CreateKey

func (r *RequestHandler) CreateKey() Response

func (*RequestHandler) Decrypt

func (r *RequestHandler) Decrypt() Response

func (*RequestHandler) DeleteAlias

func (r *RequestHandler) DeleteAlias() Response

func (*RequestHandler) DeleteImportedKeyMaterial

func (r *RequestHandler) DeleteImportedKeyMaterial() Response

func (*RequestHandler) DescribeKey

func (r *RequestHandler) DescribeKey() Response

func (*RequestHandler) DisableKey

func (r *RequestHandler) DisableKey() Response

func (*RequestHandler) DisableKeyRotation

func (r *RequestHandler) DisableKeyRotation() Response

func (*RequestHandler) EnableKey

func (r *RequestHandler) EnableKey() Response

func (*RequestHandler) EnableKeyRotation

func (r *RequestHandler) EnableKeyRotation() Response

func (*RequestHandler) Encrypt

func (r *RequestHandler) Encrypt() Response

func (*RequestHandler) GenerateDataKey

func (r *RequestHandler) GenerateDataKey() Response

func (*RequestHandler) GenerateDataKeyPair

func (r *RequestHandler) GenerateDataKeyPair() Response

func (*RequestHandler) GenerateDataKeyPairWithoutPlaintext

func (r *RequestHandler) GenerateDataKeyPairWithoutPlaintext() Response

func (*RequestHandler) GenerateDataKeyWithoutPlaintext

func (r *RequestHandler) GenerateDataKeyWithoutPlaintext() Response

func (*RequestHandler) GenerateRandom

func (r *RequestHandler) GenerateRandom() Response

func (*RequestHandler) GetKeyPolicy

func (r *RequestHandler) GetKeyPolicy() Response

func (*RequestHandler) GetKeyRotationStatus

func (r *RequestHandler) GetKeyRotationStatus() Response

func (*RequestHandler) GetParametersForImport

func (r *RequestHandler) GetParametersForImport() Response

func (*RequestHandler) GetPublicKey

func (r *RequestHandler) GetPublicKey() Response

func (*RequestHandler) ImportKeyMaterial

func (r *RequestHandler) ImportKeyMaterial() Response

func (*RequestHandler) ListAliases

func (r *RequestHandler) ListAliases() Response

func (*RequestHandler) ListKeys

func (r *RequestHandler) ListKeys() Response

func (*RequestHandler) ListResourceTags

func (r *RequestHandler) ListResourceTags() Response

func (*RequestHandler) PutKeyPolicy

func (r *RequestHandler) PutKeyPolicy() Response

func (*RequestHandler) ReEncrypt

func (r *RequestHandler) ReEncrypt() Response

func (*RequestHandler) ScheduleKeyDeletion

func (r *RequestHandler) ScheduleKeyDeletion() Response

func (*RequestHandler) Sign

func (r *RequestHandler) Sign() Response

func (*RequestHandler) TagResource

func (r *RequestHandler) TagResource() Response

func (*RequestHandler) UntagResource

func (r *RequestHandler) UntagResource() Response

func (*RequestHandler) UpdateAlias

func (r *RequestHandler) UpdateAlias() Response

func (*RequestHandler) UpdateKeyDescription

func (r *RequestHandler) UpdateKeyDescription() Response

func (*RequestHandler) Verify

func (r *RequestHandler) Verify() Response

type Response

type Response struct {
	Code int
	Body string
}

func New400ExceptionResponse

func New400ExceptionResponse(exception, message string) Response

func New400ExceptionResponseFormatted

func New400ExceptionResponseFormatted(exception, message string, capitalM bool) Response

func NewAccessDeniedExceptionResponse

func NewAccessDeniedExceptionResponse(message string) Response

func NewAlreadyExistsExceptionResponse

func NewAlreadyExistsExceptionResponse(message string) Response

func NewDisabledExceptionResponse

func NewDisabledExceptionResponse(message string) Response

func NewExpiredImportTokenExceptionResponse

func NewExpiredImportTokenExceptionResponse() Response

func NewIncorrectKeyMaterialExceptionResponse

func NewIncorrectKeyMaterialExceptionResponse() Response

func NewInternalFailureExceptionResponse

func NewInternalFailureExceptionResponse(message string) Response

func NewInvalidCiphertextExceptionResponse

func NewInvalidCiphertextExceptionResponse(message string) Response

func NewInvalidImportTokenExceptionResponse

func NewInvalidImportTokenExceptionResponse() Response

func NewInvalidKeyUsageException

func NewInvalidKeyUsageException(message string) Response

func NewKMSInvalidSignatureException

func NewKMSInvalidSignatureException(message string) Response

func NewKMSInvalidStateExceptionResponse

func NewKMSInvalidStateExceptionResponse(message string) Response

func NewMissingParameterResponse

func NewMissingParameterResponse(message string) Response

func NewNotAuthorizedExceptionResponse

func NewNotAuthorizedExceptionResponse(message string) Response

func NewNotFoundExceptionResponse

func NewNotFoundExceptionResponse(message string) Response

func NewResponse

func NewResponse(code int, v interface{}) Response

func NewSerializationExceptionResponse

func NewSerializationExceptionResponse(message string) Response

func NewUnsupportedOperationException

func NewUnsupportedOperationException(message string) Response

func NewValidationExceptionResponse

func NewValidationExceptionResponse(message string) Response

func (Response) Empty

func (r Response) Empty() bool

Jump to

Keyboard shortcuts

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