Documentation
¶
Overview ¶
Package payloads contains openapi spec payloads
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubkeyRequest ¶
type PubkeyResponse ¶
type PubkeyResponse struct {
ID int64 `json:"id" yaml:"id"`
AccountID int64 `json:"-" yaml:"-"`
Name string `json:"name" yaml:"name"`
Body string `json:"body" yaml:"body"`
Type string `json:"type,omitempty" yaml:"type,omitempty"`
Fingerprint string `json:"fingerprint,omitempty" yaml:"fingerprint,omitempty"`
FingerprintLegacy string `json:"fingerprint_legacy,omitempty" yaml:"fingerprint_legacy,omitempty"`
}
type ResponseError ¶
type ResponseError struct {
// HTTP status code
HTTPStatusCode int `json:"-" yaml:"-"`
// user facing error message
Message string `json:"msg,omitempty" yaml:"msg,omitempty"`
// full root cause
Error string `json:"error" yaml:"error"`
// build commit
Version string `json:"version" yaml:"version"`
// environment (prod or stage or ephemeral)
Environment string `json:"environment,omitempty" yaml:"environment"`
}
ResponseError is used as a payload for all errors. Use NewResponseError function to create new type to set some fields correctly.
Click to show internal directories.
Click to hide internal directories.