signhandler

package
v0.0.0-...-a5a65f0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package signhandler implements the HTTP interface to signing and verifying Camlistore JSON blobs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) Discovery

func (h *Handler) Discovery(base string) *camtypes.SignDiscovery

Discovery returns the Discovery response for the signing handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

func (*Handler) Sign

func (h *Handler) Sign(bb *schema.Builder) (string, error)

func (*Handler) Signer

func (h *Handler) Signer() *schema.Signer

func (*Handler) UploadPublicKey

func (h *Handler) UploadPublicKey() error

UploadPublicKey writes the public key to the destination blobserver defined for the handler, if needed.

Jump to

Keyboard shortcuts

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