handlers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicUpdateHandler

func AtomicUpdateHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

AtomicUpdateHandler will accept multiple TUF files and ensure that the storage backend is atomically updated with all the new records.

func Changefeed added in v0.5.0

func Changefeed(ctx context.Context, w http.ResponseWriter, r *http.Request) error

Changefeed returns a list of changes according to the provided filters

func DeleteHandler

func DeleteHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

DeleteHandler deletes all data for a GUN. A 200 responses indicates success.

func GetHandler

func GetHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

GetHandler returns the json for a specified role and GUN.

func GetKeyHandler

func GetKeyHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

GetKeyHandler returns a public key for the specified role, creating a new key-pair it if it doesn't yet exist

func MainHandler

func MainHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

MainHandler is the default handler for the server

func NotFoundHandler

func NotFoundHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

NotFoundHandler is used as a generic catch all handler to return the ErrMetadataNotFound 404 response

func RotateKeyHandler added in v0.4.0

func RotateKeyHandler(ctx context.Context, w http.ResponseWriter, r *http.Request) error

RotateKeyHandler rotates the remote key for the specified role, returning the public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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