Documentation ¶
Index ¶
Constants ¶
View Source
const ( URLPathSwagger = "/swagger/*any" URLPathSwaggerDesc = "Swagger endpoint for docs" )
View Source
const ( URLPathHealthz = "/healthz" URLPathHealthzDesc = "Get the health status of the gpud instance" )
View Source
const ( URLPathConfig = "/config" URLPathConfigDesc = "Get the configuration of the gpud instance" )
View Source
const ( URLPathPackages = "/packages" URLPathPackagesDesc = "Get the status of gpud managed packages" )
View Source
const ( RequestHeaderContentType = "Content-Type" RequestHeaderJSON = "application/json" RequestHeaderYAML = "application/yaml" RequestHeaderJSONIndent = "json-indent" RequestHeaderAcceptEncoding = "Accept-Encoding" RequestHeaderEncodingGzip = "gzip" )
View Source
const ( URLPathComponents = "/components" URLPathComponentsDesc = "Get the list of all components" )
View Source
const ( URLPathStates = "/states" URLPathStatesDesc = "Get the states of all gpud components" )
View Source
const ( URLPathEvents = "/events" URLPathEventsDesc = "Get the events of all gpud components" )
View Source
const ( URLPathInfo = "/info" URLPathInfoDesc = "Get the information of all gpud components" )
View Source
const ( URLPathMetrics = "/metrics" URLPathMetricsDesc = "Get the metrics of all gpud components" )
View Source
const DefaultQuerySince = 30 * time.Minute
Variables ¶
View Source
var DefaultHealthz = Healthz{
Status: "ok",
Version: "v1",
}
Functions ¶
func WriteToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.