caserver

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RequestBodySizeLimit = 8192

RequestBodySizeLimit is the maximum request body size

Variables

This section is empty.

Functions

func New

func New(c *ca.CA, options ...Option) http.Handler

New creates a new CA Server which needs to then be atatched to some http server, a la `http.ListenAndServeTLS(...)`

Types

type CreateCertRequest

type CreateCertRequest struct {
	PublicKey sshcert.RawPublicKey `json:"publicKey"`
	Token     string               `json:"token"`
}

CreateCertRequest asks for a signed cert

type CreateCertResponse

type CreateCertResponse struct {
	Certificate sshcert.RawCertificate `json:"certificate"`
}

CreateCertResponse is response from a CreateCert request

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option configures the agent

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient specifies the http client to use

Jump to

Keyboard shortcuts

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