Documentation ¶
Index ¶
- Variables
- func Build(dcSlice *[]sensu.Sensu)
- func BuildClients()
- func BuildEvents()
- func BuildSubscriptions()
- func CreateStash(data interface{}) error
- func DeleteClient(id string, dc string) error
- func DeleteStash(data interface{}) error
- func Fetch(t int)
- func GetClient(id string, dc string) (map[string]interface{}, error)
- func New(c *Config) *[]sensu.Sensu
- func ResolveEvent(data interface{}) error
- func Status(info map[string]interface{}, name string) map[string]string
- func WebServer(config *Config, publicPath *string)
- type Config
- type GlobalConfig
- type SensuConfig
Constants ¶
This section is empty.
Variables ¶
var Health = health{Uchiwa: "ok", Sensu: make(map[string]interface{})}
Health contains the health of Uchiwa and every Sensu API
var Results = new(results)
Results is a results struct that contains all Sensu APIs data
Functions ¶
func BuildClients ¶
func BuildClients()
BuildClients constructs clients objects for frontend consumption
func BuildEvents ¶
func BuildEvents()
BuildEvents constructs events objects for frontend consumption
func BuildSubscriptions ¶
func BuildSubscriptions()
BuildSubscriptions builds a slice of every client subscriptions
func CreateStash ¶
func CreateStash(data interface{}) error
CreateStash send a POST request to the /stashes endpoint in order to create a stash
func DeleteClient ¶
DeleteClient send a DELETE request to the /clients/*client* endpoint in order to delete a client
func DeleteStash ¶
func DeleteStash(data interface{}) error
DeleteStash send a DELETE request to the /stashes/*path* endpoint in order to delete a stash
func ResolveEvent ¶
func ResolveEvent(data interface{}) error
ResolveEvent send a POST request to the /resolve endpoint in order to resolve an event
Types ¶
type Config ¶
type Config struct { Sensu []SensuConfig Uchiwa GlobalConfig }
Config struct contains []SensuConfig and UchiwaConfig structs
var PublicConfig *Config
PublicConfig contains the public configuration of Uchiwa (hidden user & pass)
func LoadConfig ¶
LoadConfig function loads a specified configuration file and return a Config struct
type GlobalConfig ¶
GlobalConfig struct contains conf about Uchiwa