Documentation
¶
Index ¶
- type Api
- type Config
- type GraCreateOrgResponse
- type GraCreateResult
- type GraCreateUserResponse
- type GraOrg
- type GraOrgAddress
- type GraUser
- type GraUserOrgRole
- type GrafanaClient
- func (gc *GrafanaClient) Cmd(verb string, path string, orgId int, payloadJs []byte) (int, *[]byte, error)
- func (gc *GrafanaClient) CmdObj(verb string, path string, orgId int, payload interface{}) (int, *[]byte, error)
- func (gc *GrafanaClient) CreateDatasourceHandler(c *gin.Context)
- func (gc *GrafanaClient) CreateOrgHandler(c *gin.Context)
- func (gc *GrafanaClient) EnablePluginHandler(c *gin.Context)
- type GrafanaClientCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraCreateOrgResponse ¶
GraCreateOrgResponse
type GraCreateResult ¶
type GraCreateResult struct {
Org GraCreateOrgResponse `json:"org"`
User GraUser `json:"user"`
}
GraCreateResult
type GraCreateUserResponse ¶
GraCreateUserResponse
type GraOrg ¶
type GraOrg struct {
Id int `json:"id,omitempty"`
Name string `json:"name"`
Address GraOrgAddress `json:"address,omitempty"`
}
GraOrg
type GraOrgAddress ¶
type GraOrgAddress struct {
Address1 string `json:"address1"`
Address2 string `json:"address2"`
City string `json:"city"`
ZipCode string `json:"zipCode"`
State string `json:"state"`
Country string `json:"country"`
}
GraOrgAddress
type GraUser ¶
type GraUser struct {
Name string `json:"name"`
Email string `json:"email"`
Login string `json:"login"`
Password string `json:"password"`
}
GraUser
type GraUserOrgRole ¶
GraUserOrgRole
type GrafanaClient ¶
type GrafanaClient struct {
*GrafanaClientCfg
}
GrafanaClient
func NewGrafanaClient ¶
func NewGrafanaClient(cfg *GrafanaClientCfg) *GrafanaClient
NewGrafanaClient
func (*GrafanaClient) Cmd ¶
func (gc *GrafanaClient) Cmd(verb string, path string, orgId int, payloadJs []byte) (int, *[]byte, error)
GrafanaClient
func (*GrafanaClient) CreateDatasourceHandler ¶ added in v0.1.0
func (gc *GrafanaClient) CreateDatasourceHandler(c *gin.Context)
CreateDatasourceHandler
func (*GrafanaClient) CreateOrgHandler ¶
func (gc *GrafanaClient) CreateOrgHandler(c *gin.Context)
CreateOrgHandler creates a Grafana organization and default user. @TODO rollbacks
func (*GrafanaClient) EnablePluginHandler ¶
func (gc *GrafanaClient) EnablePluginHandler(c *gin.Context)
EnablePluginHandler
Click to show internal directories.
Click to hide internal directories.