Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GatewayDefaultPort - default port at which the http server listens GatewayDefaultPort = "9010" // APIVersion - default api version for REST endpoints APIVersion = "v1" // TerrascanServerPort allows user to configure server at a port other than default TerrascanServerPort = "TERRASCAN_SERVER_PORT" )
Variables ¶
View Source
var ErrDashboardDisabled = fmt.Errorf("set 'dashboard=true' in terrascan config file to enable database logs")
ErrDashboardDisabled would be the error returned back when log endpoint is hit while the dashboard mode is disabled
Functions ¶
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
APIHandler struct for http api server
func (*APIHandler) Health ¶
func (g *APIHandler) Health(w http.ResponseWriter, r *http.Request)
Health returns the health of the http server
type IacProvider ¶ added in v1.16.0
type IacProvider struct { Type string `json:"type"` Versions []string `json:"versions"` DefaultVersion string `json:"defaultVersion"` }
IacProvider contains response body for iac providers
Click to show internal directories.
Click to hide internal directories.