Documentation
¶
Index ¶
- Constants
- type Api
- func (api *Api) Application(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Auth(h func(http.ResponseWriter, *http.Request, *db.User)) http.HandlerFunc
- func (api *Api) AuthInit(anonymousRole string, adminPassword string) error
- func (api *Api) Categories(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) CustomApplications(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) GetUser(r *http.Request) *db.User
- func (api *Api) Incident(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Inspection(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Inspections(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Instrumentation(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Integration(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Integrations(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) IsAllowed(u *db.User, action rbac.Action) bool
- func (api *Api) LoadWorld(ctx context.Context, project *db.Project, from, to timeseries.Time) (*model.World, *cache.Status, error)
- func (api *Api) LoadWorldByRequest(r *http.Request) (*model.World, *db.Project, *cache.Status, error)
- func (api *Api) Login(w http.ResponseWriter, r *http.Request)
- func (api *Api) Logout(w http.ResponseWriter, r *http.Request)
- func (api *Api) Logs(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Node(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Overview(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Profiling(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Project(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Prom(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) RCA(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Roles(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) SSO(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) SetSessionCookie(w http.ResponseWriter, userId int, ttl time.Duration) error
- func (api *Api) Status(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Tracing(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) User(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) Users(w http.ResponseWriter, r *http.Request, u *db.User)
- func (api *Api) WithContext(p *db.Project, cacheStatus *cache.Status, w *model.World, data any) DataWithContext
- type Application
- type Context
- type DataWithContext
- type KubeStateMetrics
- type Node
- type NodeAgent
- type Prometheus
- type Search
- type Session
- type Status
Constants ¶
View Source
const ( AuthSecretSettingName = "auth_secret" HashFunc = crypto.SHA256 SessionCookieName = "coroot_session" SessionCookieTTL = 7 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewApi ¶
func NewApi(cache *cache.Cache, db *db.DB, collector *collector.Collector, pricing *pricing.Manager, roles rbac.RoleManager, globalClickHouse *db.IntegrationClickhouse, globalPrometheus *db.IntegrationsPrometheus) *Api
func (*Api) Application ¶ added in v1.5.0
func (*Api) Auth ¶ added in v1.5.0
func (api *Api) Auth(h func(http.ResponseWriter, *http.Request, *db.User)) http.HandlerFunc
func (*Api) Categories ¶
func (*Api) CustomApplications ¶ added in v1.4.0
func (*Api) Inspection ¶ added in v1.5.0
func (*Api) Inspections ¶ added in v1.5.0
func (*Api) Instrumentation ¶ added in v1.3.0
func (*Api) Integration ¶
func (*Api) Integrations ¶
func (*Api) LoadWorldByRequest ¶ added in v1.5.0
func (*Api) SetSessionCookie ¶ added in v1.5.6
type Application ¶ added in v0.22.0
type Application struct {
Id model.ApplicationId `json:"id"`
Status model.Status `json:"status"`
}
type DataWithContext ¶ added in v1.5.0
type KubeStateMetrics ¶ added in v0.22.0
type Prometheus ¶ added in v0.22.0
type Search ¶ added in v0.22.0
type Search struct {
Applications []Application `json:"applications"`
Nodes []Node `json:"nodes"`
}
type Status ¶ added in v0.22.0
type Status struct {
Status model.Status `json:"status"`
Error string `json:"error"`
Prometheus Prometheus `json:"prometheus"`
NodeAgent NodeAgent `json:"node_agent"`
KubeStateMetrics *KubeStateMetrics `json:"kube_state_metrics"`
}
Click to show internal directories.
Click to hide internal directories.