package server
import "github.com/theupdateframework/notary/server"
Index ¶
- func RootHandler(ac auth.AccessController, ctx context.Context, trust signed.CryptoService) http.Handler
- func Run(ctx context.Context, addr string, tlsConfig *tls.Config, trust signed.CryptoService, authMethod string, authOpts interface{}) error
Functions ¶
func RootHandler ¶
func RootHandler(ac auth.AccessController, ctx context.Context, trust signed.CryptoService) http.Handler
RootHandler returns the handler that routes all the paths from / for the server.
func Run ¶
func Run(ctx context.Context, addr string, tlsConfig *tls.Config, trust signed.CryptoService, authMethod string, authOpts interface{}) error
Run sets up and starts a TLS server that can be cancelled using the given configuration. The context it is passed is the context it should use directly for the TLS server, and generate children off for requests
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
server/errors | |
server/handlers | |
server/snapshot | |
server/storage | |
server/timestamp |
- Version
- v0.2.0
- Published
- Feb 25, 2016
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 22 minutes ago –
Tools for package owners.