api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(config common.Config) error

NewServer creates a new server and starts it

func TokenMiddleware

func TokenMiddleware(psk []byte, public map[string]string, h http.Handler) http.Handler

TokenMiddleware checks the tokens for non-public URLs

Types

type ClientSSLProfile

type ClientSSLProfile struct {
	Cert                 string `json:"cert"`
	Key                  string `json:"key"`
	Chain                string `json:"chain"`
	DefaultsFrom         string `json:"defaultsfrom"`
	CipherGroup          string `json:"ciphergroup"`
	Ciphers              string `json:"ciphers"`
	ClientSSLProfileName string `json:"clientssl-profile"`
}

ClientSSLProfile is an ltm clientSSL Profile

type LogWriter

type LogWriter struct {
	http.ResponseWriter
}

LogWriter is an http.ResponseWriter

func (LogWriter) Write

func (w LogWriter) Write(p []byte) (n int, err error)

Write log message if http response writer returns an error

type ModifyClientSSLProfileRequest

type ModifyClientSSLProfileRequest struct {
	CertificateFile      string `json:"cert"`
	KeyFile              string `json:"key"`
	ClientSSLProfileName string `json:"clientssl-profile"`
	Chain                string `json:"chain"`
	DefaultsFrom         string `json:"defaultsfrom"`
	Ciphers              string `json:"ciphers"`
	CipherGroup          string `json:"ciphergroup"`
	ClientSSLProfile     *ClientSSLProfile
}

ModifyClientSSLProfileRequest defines the key and cert data uploaded from a client

Jump to

Keyboard shortcuts

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