Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, err error, code int)
Types ¶
type BasicInfoHandler ¶
func NewBasicInfoHandler ¶
func NewBasicInfoHandler(ctx context.Context) *BasicInfoHandler
func (*BasicInfoHandler) ServeHTTP ¶
func (h *BasicInfoHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ChangSetSummaryItem ¶
type ChangeSetSummary ¶
type ChangeSetSummary struct {
Added []ChangSetSummaryItem `json:"added"`
Removed []ChangSetSummaryItem `json:"removed"`
Updated []ChangSetSummaryItem `json:"updated"`
}
type CollectionHandler ¶
type CollectionHandler struct {
// contains filtered or unexported fields
}
func NewCollectionHandler ¶
func NewCollectionHandler(mongoClient *mongo.Client) *CollectionHandler
func (*CollectionHandler) ServeHTTP ¶
func (ch *CollectionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type NodeIdentifiable ¶
type NodeIdentifiable interface {
SetNodeAndResourceID(nodeName string) error
GetResourceID() (string, error)
}
func IdentifiablesFromBGPConfigs ¶
func IdentifiablesFromBGPConfigs(bgpConfigs []pkgbird.BGPProtocol) []NodeIdentifiable
func IdentifiablesFromWgConfigs ¶
func IdentifiablesFromWgConfigs(wgConfigs []pkginterfacewireguard.WireGuardConfig) []NodeIdentifiable
type ReconvergeStatus ¶
type ResourceHandler ¶
func NewResourceHandler ¶
func NewResourceHandler(ctx context.Context) *ResourceHandler
func (*ResourceHandler) ServeHTTP ¶
func (h *ResourceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.