Documentation
¶
Overview ¶
Package httpapi exposes the catalog through a single authenticated operation dispatcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Tools = []string{"search", "get_asset", "get_service", "list_by_host", "list_by_network", "get_site", "topology", "list_outdated", "get_changes", "get_context", "put_context", "record_note", "propose_change", "create", "update", "mark_verified", "check_versions"}
Functions ¶
func IntArg ¶
func IntArg(v string) json.RawMessage
func StringArg ¶
func StringArg(v string) json.RawMessage
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
Types ¶
type APIError ¶
type APIError struct {
Code string `json:"code"`
Message string `json:"message"`
Details any `json:"details,omitempty"`
Fields []catalog.FieldError `json:"fields,omitempty"`
}
type Args ¶
type Args map[string]json.RawMessage
Click to show internal directories.
Click to hide internal directories.