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
Click to show internal directories.
Click to hide internal directories.