herokuas

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) DeleteTrigger

func (c *Client) DeleteTrigger(uuid string) error

DeleteTrigger removes an trigger from the server

func (*Client) GetAll

func (c *Client) GetAll() (*map[string]Trigger, error)

func (*Client) GetTrigger

func (c *Client) GetTrigger(uuid string) (*Trigger, error)

func (*Client) NewTrigger

func (c *Client) NewTrigger(newTrigger *Trigger) (*Trigger, error)

func (*Client) UpdateTrigger

func (c *Client) UpdateTrigger(trigger *Trigger) error

type Trigger

type Trigger struct {
	UUID          string `json:"uuid"`
	Name          string `json:"name"`
	State         string `json:"state"`
	Dyno          string `json:"dyno"`
	FrequencyType string `json:"frequencyType"`
	Schedule      string `json:"schedule"`
	Timezone      string `json:"timezone"`
	Value         string `json:"value"`
	Timeout       int    `json:"timeout,omitempty"`
}

type TriggerResponse

type TriggerResponse struct {
	Message string  `json:"message"`
	Code    int     `json:"code"`
	Trigger Trigger `json:"trigger"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL