perkeep.org: perkeep.org/pkg/jsonsign/signhandler Index | Files

package signhandler

import "perkeep.org/pkg/jsonsign/signhandler"

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

Index

Package Files

sig.go

type Handler Uses

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

Handler implements JSON signing, verification, and discovery.

See https://perkeep.org/doc/protocol/jsonsign

func (*Handler) Discovery Uses

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

Discovery returns the Discovery response for the signing handler.

func (*Handler) ServeHTTP Uses

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

func (*Handler) Sign Uses

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

func (*Handler) Signer Uses

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

func (*Handler) UploadPublicKey Uses

func (h *Handler) UploadPublicKey(ctx context.Context) error

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

Package signhandler imports 17 packages (graph) and is imported by 4 packages. Updated 2019-06-30. Refresh now. Tools for package owners.