Documentation ¶
Index ¶
- type AlertPosition
- type Database
- type DatabaseHelper
- func (h *DatabaseHelper) ClusterNS2EnvMap() (map[string]EnvInfo, error)
- func (h *DatabaseHelper) EnvAdmins(envIDs ...uint) []uint
- func (h *DatabaseHelper) EnvUsers(envIDs ...uint) []uint
- func (h *DatabaseHelper) FindPromqlTpl(scope, resource, rule string) (*templates.PromqlTpl, error)
- func (h *DatabaseHelper) GetAlertPosition(cluster, namespace, name, scope, from string) (AlertPosition, error)
- func (h *DatabaseHelper) NewPromqlTplMapperFromDB() *templates.PromqlTplMapper
- func (h *DatabaseHelper) ProjectAdmins(projIDs ...uint) []uint
- func (h *DatabaseHelper) ProjectUsers(projIDs ...uint) []uint
- func (h *DatabaseHelper) SystemAdmins() []uint
- func (h *DatabaseHelper) SystemUsers() []uint
- func (h *DatabaseHelper) TenantAdmins(tenantIDs ...uint) []uint
- func (h *DatabaseHelper) TenantUsers(tenantIDs ...uint) []uint
- type EnvInfo
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertPosition ¶
type Database ¶
type Database struct { *DatabaseHelper // contains filtered or unexported fields }
func NewDatabase ¶
type DatabaseHelper ¶
func (*DatabaseHelper) ClusterNS2EnvMap ¶
func (h *DatabaseHelper) ClusterNS2EnvMap() (map[string]EnvInfo, error)
func (*DatabaseHelper) EnvAdmins ¶
func (h *DatabaseHelper) EnvAdmins(envIDs ...uint) []uint
func (*DatabaseHelper) EnvUsers ¶
func (h *DatabaseHelper) EnvUsers(envIDs ...uint) []uint
func (*DatabaseHelper) FindPromqlTpl ¶ added in v1.22.0
func (h *DatabaseHelper) FindPromqlTpl(scope, resource, rule string) (*templates.PromqlTpl, error)
func (*DatabaseHelper) GetAlertPosition ¶
func (h *DatabaseHelper) GetAlertPosition(cluster, namespace, name, scope, from string) (AlertPosition, error)
func (*DatabaseHelper) NewPromqlTplMapperFromDB ¶ added in v1.22.0
func (h *DatabaseHelper) NewPromqlTplMapperFromDB() *templates.PromqlTplMapper
func (*DatabaseHelper) ProjectAdmins ¶
func (h *DatabaseHelper) ProjectAdmins(projIDs ...uint) []uint
func (*DatabaseHelper) ProjectUsers ¶
func (h *DatabaseHelper) ProjectUsers(projIDs ...uint) []uint
func (*DatabaseHelper) SystemAdmins ¶
func (h *DatabaseHelper) SystemAdmins() []uint
func (*DatabaseHelper) SystemUsers ¶
func (h *DatabaseHelper) SystemUsers() []uint
func (*DatabaseHelper) TenantAdmins ¶
func (h *DatabaseHelper) TenantAdmins(tenantIDs ...uint) []uint
func (*DatabaseHelper) TenantUsers ¶
func (h *DatabaseHelper) TenantUsers(tenantIDs ...uint) []uint
type Options ¶
type Options struct { Addr string `json:"addr" description:"mysql host addr"` Username string `json:"username" description:"mysql username"` Password string `json:"password" description:"mysql password"` Database string `json:"database" description:"database to use"` }
func NewDefaultOptions ¶
func NewDefaultOptions() *Options
func (*Options) ToDriverConfig ¶
func (*Options) ToDsnWithOutDB ¶
Click to show internal directories.
Click to hide internal directories.