server

package
v0.0.0-...-0de40c7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	LookupX509 func(key string, cr *webhook.X509CertificateRequest) (any, bool, error)
	LookupSSH  func(key string, cr *webhook.SSHCertificateRequest) (any, bool, error)
	AllowX509  func(certificate *webhook.X509Certificate) (bool, error)
	AllowSSH   func(certificate *webhook.SSHCertificate) (bool, error)
	Secrets    map[string]Secret
}

func (*Handler) Authorize

func (h *Handler) Authorize(w http.ResponseWriter, r *http.Request)

func (*Handler) AuthorizeSSH

func (h *Handler) AuthorizeSSH(w http.ResponseWriter, r *http.Request)

func (*Handler) EnrichSSH

func (h *Handler) EnrichSSH(w http.ResponseWriter, r *http.Request)

func (*Handler) EnrichX509

func (h *Handler) EnrichX509(w http.ResponseWriter, r *http.Request)

type Secret

type Secret struct {
	Signing  string
	Bearer   string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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