Documentation ¶
Index ¶
- func AtomicUpdateHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func DeleteHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func GetHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func GetTimestampHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func GetTimestampKeyHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func MainHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type ErrBadHierarchy
- type ErrBadRoot
- type ErrBadSnapshot
- type ErrBadTargets
- type ErrValidation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicUpdateHandler ¶
AtomicUpdateHandler will accept multiple TUF files and ensure that the storage backend is atomically updated with all the new records.
func DeleteHandler ¶
DeleteHandler deletes all data for a GUN. A 200 responses indicates success.
func GetHandler ¶
GetHandler returns the json for a specified role and GUN.
func GetTimestampHandler ¶
GetTimestampHandler returns a timestamp.json given a GUN
func GetTimestampKeyHandler ¶
GetTimestampKeyHandler returns a timestamp public key, creating a new key-pair it if it doesn't yet exist
func MainHandler ¶
MainHandler is the default handler for the server
Types ¶
type ErrBadHierarchy ¶
type ErrBadHierarchy struct {
// contains filtered or unexported fields
}
ErrBadHierarchy represents a missing snapshot at this current time. When delegations are implemented it will also represent a missing delegation parent
func (ErrBadHierarchy) Error ¶
func (err ErrBadHierarchy) Error() string
type ErrBadRoot ¶
type ErrBadRoot struct {
// contains filtered or unexported fields
}
ErrBadRoot represents a failure validating the root
func (ErrBadRoot) Error ¶
func (err ErrBadRoot) Error() string
type ErrBadSnapshot ¶
type ErrBadSnapshot struct {
// contains filtered or unexported fields
}
ErrBadSnapshot represents a failure to validate the snapshot
func (ErrBadSnapshot) Error ¶
func (err ErrBadSnapshot) Error() string
type ErrBadTargets ¶
type ErrBadTargets struct {
// contains filtered or unexported fields
}
ErrBadTargets represents a failure to validate a targets (incl delegations)
func (ErrBadTargets) Error ¶
func (err ErrBadTargets) Error() string
type ErrValidation ¶
type ErrValidation struct {
// contains filtered or unexported fields
}
ErrValidation represents a general validation error
func (ErrValidation) Error ¶
func (err ErrValidation) Error() string