externalapi

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertUrl = "https://%s/v1/remoteenvironments/%s"
	SignUrl = "https://%s/v1/remoteenvironments/%s/client-certs?token=%s"
	APIUrl  = "https://gateway.%s/%s/v1/"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(sHandler SignatureHandler, iHandler InfoHandler) http.Handler

Types

type InfoHandler

type InfoHandler interface {
	GetInfo(w http.ResponseWriter, r *http.Request)
}

func NewInfoHandler

func NewInfoHandler(cache tokencache.TokenCache, tokenGenerator tokens.TokenGenerator, host string, domainName string, subjectValues certificates.CSRSubject) InfoHandler

type SignatureHandler

type SignatureHandler interface {
	SignCSR(w http.ResponseWriter, r *http.Request)
}

func NewSignatureHandler

func NewSignatureHandler(tokenCache tokencache.TokenCache, certUtil certificates.CertificateUtility, secretsRepository secrets.Repository,
	host string, domainName string, subjectValues certificates.CSRSubject) SignatureHandler

Jump to

Keyboard shortcuts

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