Documentation
¶
Index ¶
- Variables
- type ListItem
- type Stack
- func (s *Stack) Create() (*ListItem, string, error)
- func (s *Stack) Delete() (string, int, error)
- func (s *Stack) List() (*[]ListItem, string, int, error)
- func (s *Stack) SetName(value string) error
- func (s *Stack) SetOrgSlug(value string) error
- func (s *Stack) SetStackSlug(value string) error
- func (s *Stack) SetToken(value string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientConfig client.Config
ClientConfig holds the configuration for the HTTP Client.
Functions ¶
This section is empty.
Types ¶
type ListItem ¶
type ListItem struct { Name string `json:"name"` Slug string `json:"slug"` GrafanaURL string `json:"url"` PrometheusID int `json:"hmInstancePromId"` PrometheusURL string `json:"hmInstancePromUrl"` GraphiteID int `json:"hmInstanceGraphiteId"` GraphiteURL string `json:"hmInstanceGraphiteUrl"` LogsID int `json:"hlInstanceId"` LogsURL string `json:"hlInstanceUrl"` TracesID int `json:"htInstanceId"` TracesURL string `json:"htInstanceUrl"` AlertManagerID int `json:"amInstanceId"` AlertManagerGeneratorURL string `json:"amInstanceGeneratorUrl"` }
ListItem described properties of individual List item returned by the API.
type Stack ¶
type Stack struct { // URL parameters OrgSlug string StackSlug string Name string // Relative path to the api-keys endpoint Endpoint string // HTTP client configuration ClientConfig client.Config }
Stack holds information about the stack.
func (*Stack) Create ¶
Create creates a new Stack and returns values of the newly created Stack and the raw API response.
func (*Stack) SetOrgSlug ¶
SetOrgSlug makes sure the Org Slug is not an empty string.
func (*Stack) SetStackSlug ¶
SetStackSlug makes sure the Stack Slug is not an empty string.
Click to show internal directories.
Click to hide internal directories.