responses

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseErrorResponse

type BaseErrorResponse struct {
	Error Error `json:"error"`
}

type DecryptionOpenResponse

type DecryptionOpenResponse struct {
	WK            onqlavecontracts.WrappingKey             `json:"wrapping_key" validate:"required"`
	SecurityModel onqlavecontracts.EncryptionSecurityModel `json:"security_model"`
	DK            onqlavecontracts.DataDecryptionKey       `json:"data_key" validate:"required"`
	BaseErrorResponse
}

type EncryptionOpenResponse

type EncryptionOpenResponse struct {
	WK            onqlavecontracts.WrappingKey             `json:"wrapping_key" validate:"required"`
	DK            onqlavecontracts.DataEncryptionKey       `json:"data_key" validate:"required"`
	SecurityModel onqlavecontracts.EncryptionSecurityModel `json:"security_model"`
	BaseErrorResponse
	MaxUses uint `json:"max_uses" validate:"required"`
}

type Error

type Error struct {
	Status        string        `json:"status" yaml:"status"`                 // Status represent string value of code
	Message       string        `json:"message" yaml:"message"`               // Message represent detail message
	CorrelationID string        `json:"correlation_id" yaml:"correlation_id"` // The RequestId that's also set in the header
	Details       []interface{} `json:"details" yaml:"details"`               // Details is a list of details in any types in string
	Code          int           `json:"code" yaml:"code"`                     // Code represent codes in response
}

Jump to

Keyboard shortcuts

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