httpfront

package
v0.0.0-...-84592dd Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPFront

type HTTPFront struct {
	Lookup        func(context.Context, *proto.LookupRequest) (*proto.LookupProof, error)
	Update        func(context.Context, *proto.UpdateRequest) (*proto.LookupProof, error)
	SAMLRequest   func() (string, error)
	OIDCRequest   func(string, string) (string, error)
	InRotation    func() bool
	IsAuthExpired func(error) bool

	// this is needed due to https://github.com/golang/go/issues/14374
	TLSConfig *tls.Config
	// contains filtered or unexported fields
}

HTTPFront implements a dumb http proxy for the keyserver grpc interface

func (*HTTPFront) ServeHTTP

func (h *HTTPFront) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*HTTPFront) Start

func (h *HTTPFront) Start(ln net.Listener)

func (*HTTPFront) Stop

func (h *HTTPFront) Stop()

Jump to

Keyboard shortcuts

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