Documentation ¶
Index ¶
- Constants
- func Provider() terraform.ResourceProvider
- type DMSnitchClient
- func (c *DMSnitchClient) Delete(endpoint string) (*http.Response, error)
- func (c *DMSnitchClient) Do(method, endpoint string, payload *bytes.Buffer) (*http.Response, error)
- func (c *DMSnitchClient) Get(endpoint string) (*http.Response, error)
- func (c *DMSnitchClient) Patch(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- func (c *DMSnitchClient) Post(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)
- type Error
- type Snitch
Constants ¶
View Source
const (
BaseUrl string = "https://api.deadmanssnitch.com/v1/"
)
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type DMSnitchClient ¶
func (*DMSnitchClient) Delete ¶
func (c *DMSnitchClient) Delete(endpoint string) (*http.Response, error)
type Error ¶
type Snitch ¶
type Snitch struct { Token string `json:"token,omitempty"` Url string `json:"check_in_url,omitempty"` Name string `json:"name,omitempty"` Status string `json:"status,omitempty"` Interval string `json:"interval,omitempty"` Type string `json:"alert_type,omitempty"` Email []string `json:"alert_email,omitempty"` Notes string `json:"notes,omitempty"` Tags []string `json:"tags,omitempty"` }
Click to show internal directories.
Click to hide internal directories.