package handlers
import "github.com/theupdateframework/notary/server/handlers"
Index ¶
- func AtomicUpdateHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func Changefeed(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 GetKeyHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func MainHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func NotFoundHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func RotateKeyHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error
Functions ¶
func AtomicUpdateHandler ¶
AtomicUpdateHandler will accept multiple TUF files and ensure that the storage backend is atomically updated with all the new records.
func Changefeed ¶
Changefeed returns a list of changes according to the provided filters
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 GetKeyHandler ¶
GetKeyHandler returns a public key for the specified role, creating a new key-pair it if it doesn't yet exist
func MainHandler ¶
MainHandler is the default handler for the server
func NotFoundHandler ¶
NotFoundHandler is used as a generic catch all handler to return the ErrMetadataNotFound 404 response
func RotateKeyHandler ¶
RotateKeyHandler rotates the remote key for the specified role, returning the public key
Source Files ¶
changefeed.go default.go roles.go validation.go
- Version
- v0.7.0 (latest)
- Published
- Jan 14, 2021
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- 14 hours ago –
Tools for package owners.