package
0.0.0-20210624121128-6b231d83a5d4
Repository: https://github.com/tkestack/kube-jarvis.git
Documentation: pkg.go.dev
# Functions
NewFakeResponseWriter return an new FakeResponseWriter.
NewHistoryResponse return a HistoryResponse with default values.
NewQueryResponse create an empty QueryResponse.
NewServer create a new Server with default values.
# Constants
StandardHistoryPath is the standard API path for querying diagnostic history.
StandardPeriodPath is the standard path for getting or updating running period this API only available when the coordinator type is "cron".
StandardQueryPath is the standard API path for querying target diagnostic results.
StandardRunPath is the standard API path for starting diagnose immediately.
StandardStatePath is the standard API path for getting current running state and progress this API only available when the coordinator type is "cron".
# Variables
Default is the default http server.
# Structs
FakeResponseWriter is a fake http.ResponseWriter for handler testing.
HistoryRequest is the request for querying history records.
HistoryResponse is the response of query history records.
QueryRequest is the request for querying one diagnostic report.
QueryResponse is the response of querying results.
Server is a http server of kube-jarvis all plugins can register standard APIs or extended APIs.
StateResponse is the response of querying current state.