Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOrganizationNotFound = errors.New("organization not found")
ErrOrganizationNotFound is returned when we couldn't find an organization with a given slug.
View Source
var ErrPrivateOrganization = errors.New("organization is private")
ErrPrivateOrganization is returned when an organization exists but hasn't published any plugins yet.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides operations to the grafana.com API.
func (*Client) FindOrgBySlug ¶
func (c *Client) FindOrgBySlug(slug string) (*Organization, error)
FindOrgBySlug returns the organization with a given slug.
func (*Client) FindPluginVersions ¶
func (c *Client) FindPluginVersions(pluginID string) ([]PluginVersion, error)
FindPluginVersions returns all published versions for a given plugin ID.
func (*Client) ListPlugins ¶
type Organization ¶
type Organization struct {
ID int64 `json:"id"`
Name string `json:"name"`
Slug string `json:"slug,omitempty"`
}
Organization maps to a Grafana.com organization.
type PluginVersion ¶
type PluginVersion struct {
Version string `json:"version"`
Commit string `json:"commit"`
CreatedAt time.Time `json:"createdAt"`
Downloads int `json:"downloads"`
URL string `json:"url"`
Verified bool `json:"verified"`
}
PluginVersion contains information about a published plugin.
Click to show internal directories.
Click to hide internal directories.