system

package
v0.0.7-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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 Handler

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

func (*Handler) CABundleHandler

func (restService *Handler) CABundleHandler(w http.ResponseWriter, r *http.Request)

Writes the CA certificate bundle in PEM form

func (*Handler) Certificate

func (restService *Handler) Certificate(w http.ResponseWriter, r *http.Request)

Writes the web server x509 certificate in PEM form

func (*Handler) Config

func (restService *Handler) Config(w http.ResponseWriter, r *http.Request)

Writes the application configuration

func (*Handler) EventsPage

func (restService *Handler) EventsPage(w http.ResponseWriter, r *http.Request)

Writes a page of system event log entries

func (*Handler) PublicKey

func (restService *Handler) PublicKey(w http.ResponseWriter, r *http.Request)

Writes the web server public key in PEM form

func (*Handler) Status

func (restService *Handler) Status(w http.ResponseWriter, r *http.Request)

Writes the current system status and metrics

type RestHandler

type RestHandler interface {
	CABundleHandler(w http.ResponseWriter, r *http.Request)
	Config(w http.ResponseWriter, r *http.Request)
	Certificate(w http.ResponseWriter, r *http.Request)
	// Endpoints(w http.ResponseWriter, r *http.Request)
	EventsPage(w http.ResponseWriter, r *http.Request)
	PublicKey(w http.ResponseWriter, r *http.Request)
	Status(w http.ResponseWriter, r *http.Request)
}

func NewHandler

func NewHandler(
	ca ca.CertificateAuthority,
	serverKeyAttributes *keystore.KeyAttributes,
	httpWriter response.HttpWriter,
	logger *logging.Logger) RestHandler

Jump to

Keyboard shortcuts

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