Documentation
¶
Index ¶
- func WithAddress(address string) func(*Server)
- func WithCA(key []byte, curve cert.Curve, cert *cert.NebulaCertificate) func(*Server)
- func WithDatabase(db *gorm.DB) func(*Server)
- func WithTLS(tls *TLS) func(*Server)
- type CA
- type ClientGetter
- type ClientNetworkResponse
- type CreateCertificateRequest
- type CreateCertificateResponse
- type CreateClientRequest
- type CreateClientResponse
- type CreateLighthouseRequest
- type CreateLighthouseResponse
- type CreateNetworkClientRequest
- type CreateNetworkClientResponse
- type CreateNetworkRequest
- type CreateNetworkResponse
- type CreateRouterRequest
- type CreateRouterResponse
- type DeleteClientResponse
- type DeleteNetworkClientResponse
- type GetCAResponse
- type GetCertificateResponse
- type GetClientNetworkResponse
- type GetClientResponse
- type GetNetworkResponse
- type HardwareAddressAuthenticator
- type Lighthouse
- type ListCertificatesResponse
- type ListClientNetworkResponse
- type ListClientNetworksResponse
- type ListClientsResponse
- type ListLighthousesResponse
- type ListNetworksResponse
- type ListRevocationsResponse
- type ListRoutersResponse
- type PublicKeyAuthHeader
- type PublicKeyAuthenticator
- type Revocation
- type Router
- type Server
- type TLS
- type UpdateNetworkClientRequest
- type UpdateNetworkClientResponse
- type WhoamiResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAddress ¶
func WithDatabase ¶
Types ¶
type ClientGetter ¶
type ClientNetworkResponse ¶
type CreateCertificateRequest ¶
type CreateCertificateRequest struct {
PubPEM []byte `json:"pubPem"`
}
type CreateCertificateResponse ¶
type CreateCertificateResponse struct { GetCertificateResponse PEM []byte `json:"pem"` }
type CreateClientRequest ¶
type CreateClientRequest struct { }
type CreateClientResponse ¶
type CreateClientResponse GetClientResponse
type CreateLighthouseRequest ¶
type CreateLighthouseResponse ¶
type CreateLighthouseResponse Lighthouse
type CreateNetworkRequest ¶
type CreateNetworkResponse ¶
type CreateNetworkResponse GetNetworkResponse
type CreateRouterRequest ¶
type CreateRouterResponse ¶
type CreateRouterResponse Router
type DeleteClientResponse ¶
type DeleteClientResponse GetClientResponse
type DeleteNetworkClientResponse ¶
type DeleteNetworkClientResponse CreateNetworkClientResponse
type GetCAResponse ¶
type GetCAResponse struct {
PEM []byte `json:"pem"`
}
type GetCertificateResponse ¶
type GetClientResponse ¶
type GetNetworkResponse ¶
type HardwareAddressAuthenticator ¶
type HardwareAddressAuthenticator struct {
// contains filtered or unexported fields
}
func NewHardwareAddressAuthenticator ¶
func NewHardwareAddressAuthenticator(localNetwork net.IPNet, errorHandler func(err error, w http.ResponseWriter)) *HardwareAddressAuthenticator
func (HardwareAddressAuthenticator) Middleware ¶
func (a HardwareAddressAuthenticator) Middleware(h http.Handler) http.Handler
type ListCertificatesResponse ¶
type ListCertificatesResponse struct {
Items []GetCertificateResponse `json:"items"`
}
type ListClientNetworkResponse ¶
type ListClientNetworkResponse struct {
Items []ClientNetworkResponse `json:"items"`
}
type ListClientNetworksResponse ¶
type ListClientNetworksResponse struct {
Items []GetClientNetworkResponse `json:"items"`
}
type ListClientsResponse ¶
type ListClientsResponse struct {
Items []GetClientResponse `json:"items"`
}
type ListLighthousesResponse ¶
type ListLighthousesResponse struct {
Items []Lighthouse
}
type ListNetworksResponse ¶
type ListNetworksResponse struct {
Items []GetNetworkResponse `json:"items"`
}
type ListRevocationsResponse ¶
type ListRevocationsResponse struct {
Items []Revocation
}
type ListRoutersResponse ¶
type ListRoutersResponse struct {
Items []Router `json:"items"`
}
type PublicKeyAuthHeader ¶
type PublicKeyAuthenticator ¶
type PublicKeyAuthenticator struct {
// contains filtered or unexported fields
}
func NewPublicKeyAuthenticator ¶
func NewPublicKeyAuthenticator(salt [32]byte, errorHandler func(err error, w http.ResponseWriter)) *PublicKeyAuthenticator
func (PublicKeyAuthenticator) Middleware ¶
func (a PublicKeyAuthenticator) Middleware(h http.Handler) http.Handler
type Revocation ¶
type Revocation struct {
Hash string
}
type UpdateNetworkClientResponse ¶
type UpdateNetworkClientResponse CreateNetworkClientResponse
type WhoamiResponse ¶
type WhoamiResponse struct {
PublicKeyHash string `json:"publicKeyHash"`
}
Click to show internal directories.
Click to hide internal directories.