Documentation
¶
Index ¶
- type Deployment
- type EarningsRecord
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteDeployment(slug string) error
- func (s *Store) GetCredentials(slug string) (map[string]string, error)
- func (s *Store) GetDeployment(slug string) (Deployment, bool, error)
- func (s *Store) ListDeployments() []Deployment
- func (s *Store) ListEarningsHistory(limit int) []EarningsRecord
- func (s *Store) ListLatestEarnings() []EarningsRecord
- func (s *Store) RecordEvent(slug, event, detail string)
- func (s *Store) SaveCredentials(slug string, values map[string]string) error
- func (s *Store) SaveEarnings(record EarningsRecord) (EarningsRecord, error)
- func (s *Store) UpsertDeployment(dep Deployment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct {
Slug string `json:"slug"`
ContainerID string `json:"containerId"`
Name string `json:"name"`
Image string `json:"image"`
Status string `json:"status"`
Runtime string `json:"runtime"`
CPUPercent float64 `json:"cpuPercent"`
MemoryMB float64 `json:"memoryMb"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
type EarningsRecord ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteDeployment ¶
func (*Store) GetCredentials ¶
func (*Store) GetDeployment ¶
func (s *Store) GetDeployment(slug string) (Deployment, bool, error)
func (*Store) ListDeployments ¶
func (s *Store) ListDeployments() []Deployment
func (*Store) ListEarningsHistory ¶ added in v0.5.0
func (s *Store) ListEarningsHistory(limit int) []EarningsRecord
func (*Store) ListLatestEarnings ¶
func (s *Store) ListLatestEarnings() []EarningsRecord
func (*Store) RecordEvent ¶
func (*Store) SaveCredentials ¶
func (*Store) SaveEarnings ¶
func (s *Store) SaveEarnings(record EarningsRecord) (EarningsRecord, error)
func (*Store) UpsertDeployment ¶
func (s *Store) UpsertDeployment(dep Deployment) error
Click to show internal directories.
Click to hide internal directories.