Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateTask(ctx context.Context, command string, interval time.Duration) error
- func (c *Client) GetAppGuid(ctx context.Context, appName string) (string, error)
- func (c *Client) GetDropletGuid(ctx context.Context, appGuid string) (string, error)
- func (c *Client) GetEnvironmentVariables(ctx context.Context, appGuid string) (map[string]string, error)
- func (c *Client) GetPackageGuid(ctx context.Context, appGuid string) (guid, downloadAddr string, err error)
- func (c *Client) GetTask(ctx context.Context, guid string) (Task, error)
- func (c *Client) LastEvent(ctx context.Context, appGuid string) (Event, error)
- func (c *Client) ListTasks(ctx context.Context, appGuid string, query map[string][]string) ([]Task, error)
- func (c *Client) ProcessStats(ctx context.Context, processGuid string) ([]ProcessStats, error)
- func (c *Client) Processes(ctx context.Context, appGuid string) ([]Process, error)
- func (c *Client) Restart(ctx context.Context, appGuid string) error
- func (c *Client) RunTask(ctx context.Context, command, name, droplet, appGuid string) (Task, error)
- func (c *Client) Scale(ctx context.Context, appGuid string, instances int) error
- func (c *Client) SetEnvironmentVariables(ctx context.Context, appGuid string, vars map[string]string) error
- type Doer
- type Event
- type HealthCheck
- type Links
- type Process
- type ProcessStats
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateTask ¶
func (*Client) GetAppGuid ¶
func (*Client) GetDropletGuid ¶
func (*Client) GetEnvironmentVariables ¶
func (*Client) GetPackageGuid ¶
func (*Client) ProcessStats ¶
type HealthCheck ¶
type Process ¶
type Process struct {
Type string `json:"type"`
Command string `json:"command"`
Instances int `json:"instances"`
MemoryInMB int `json:"memory_in_mb"`
DiskInMB int `json:"disk_in_mb"`
HealthCheck HealthCheck `json:"health_check"`
Guid string `json:"guid"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Links map[string]Links `json:"links"`
}
type ProcessStats ¶
type ProcessStats struct {
Type string `json:"type"`
Index int `json:"index"`
State string `json:"state"`
Usage struct {
Time time.Time `json:"time"`
CPU float64 `json:"cpu"`
Mem float64 `json:"mem"`
Disk int `json:"disk"`
} `json:"usage"`
Host string `json:"host"`
Uptime int `json:"uptime"`
MemQuota int `json:"mem_quota"`
DiskQuota int `json:"disk_quota"`
FdsQuota int `json:"fds_quota"`
}
type Task ¶
type Task struct {
SequenceID int `json:"sequence_id"`
Name string `json:"name"`
Command string `json:"command"`
DiskInMB int `json:"disk_in_mb"`
MemoryInMB int `json:"memory_in_mb"`
State string `json:"state"`
DropletGuid string `json:"droplet_guid"`
Guid string `json:"guid"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Links map[string]Links `json:"links"`
}
Click to show internal directories.
Click to hide internal directories.