Documentation ¶
Index ¶
- func FormatAllocSummary(alloc *api.AllocationStatus) string
- func FormatDeploymentAllocSummary(d *api.DeploymentStatus) string
- func FormatDeploymentSummary(d *api.DeploymentStatus) string
- func FormatHealthChecksSummary(allocs ...*api.AllocationStatus) string
- func FormatRelativeTime(t time.Time) string
- func FormatTime(t time.Time) string
- type AllocationChecks
- type AllocationEvents
- type Allocations
- type AppCompact
- type AppStatus
- type Apps
- type DeploymentStatus
- type Environment
- type IPAddresses
- type ImageDetails
- type LogPresenter
- type MachineEvents
- type Machines
- type Options
- type Presentable
- type Presenter
- type Secrets
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAllocSummary ¶ added in v0.0.109
func FormatAllocSummary(alloc *api.AllocationStatus) string
func FormatDeploymentAllocSummary ¶ added in v0.0.133
func FormatDeploymentAllocSummary(d *api.DeploymentStatus) string
func FormatDeploymentSummary ¶ added in v0.0.109
func FormatDeploymentSummary(d *api.DeploymentStatus) string
func FormatHealthChecksSummary ¶ added in v0.0.109
func FormatHealthChecksSummary(allocs ...*api.AllocationStatus) string
func FormatRelativeTime ¶ added in v0.0.144
func FormatTime ¶ added in v0.0.144
Types ¶
type AllocationChecks ¶ added in v0.0.109
type AllocationChecks struct {
Checks []api.CheckState
}
AllocationChecks - Holds check state for an allocation
func (*AllocationChecks) APIStruct ¶ added in v0.0.133
func (p *AllocationChecks) APIStruct() interface{}
APIStruct - returns an interface to the check state
func (*AllocationChecks) FieldNames ¶ added in v0.0.109
func (p *AllocationChecks) FieldNames() []string
FieldNames - returns the associated field names for check states
func (*AllocationChecks) Records ¶ added in v0.0.109
func (p *AllocationChecks) Records() []map[string]string
Records - formats check states into map
type AllocationEvents ¶ added in v0.0.109
type AllocationEvents struct {
Events []api.AllocationEvent
}
AllocationEvents - Holds events for an allocation
func (*AllocationEvents) APIStruct ¶ added in v0.0.133
func (p *AllocationEvents) APIStruct() interface{}
APIStruct - returns an interface to allocation events
func (*AllocationEvents) FieldNames ¶ added in v0.0.109
func (p *AllocationEvents) FieldNames() []string
FieldNames - returns the field names for an allocation event
func (*AllocationEvents) Records ¶ added in v0.0.109
func (p *AllocationEvents) Records() []map[string]string
Records - formats allocation events into a map
type Allocations ¶
type Allocations struct { Allocations []*api.AllocationStatus BackupRegions []api.Region }
func (*Allocations) APIStruct ¶ added in v0.0.133
func (p *Allocations) APIStruct() interface{}
func (*Allocations) FieldNames ¶
func (p *Allocations) FieldNames() []string
func (*Allocations) Records ¶
func (p *Allocations) Records() []map[string]string
type AppCompact ¶ added in v0.0.135
type AppCompact struct {
AppCompact api.AppCompact
}
func (*AppCompact) APIStruct ¶ added in v0.0.135
func (p *AppCompact) APIStruct() interface{}
func (*AppCompact) FieldNames ¶ added in v0.0.135
func (p *AppCompact) FieldNames() []string
func (*AppCompact) Records ¶ added in v0.0.135
func (p *AppCompact) Records() []map[string]string
type AppStatus ¶ added in v0.0.135
func (*AppStatus) FieldNames ¶ added in v0.0.135
type Apps ¶
func (*Apps) FieldNames ¶
type DeploymentStatus ¶
type DeploymentStatus struct {
Status *api.DeploymentStatus
}
func (*DeploymentStatus) APIStruct ¶ added in v0.0.133
func (p *DeploymentStatus) APIStruct() interface{}
func (*DeploymentStatus) FieldNames ¶
func (p *DeploymentStatus) FieldNames() []string
func (*DeploymentStatus) Records ¶
func (p *DeploymentStatus) Records() []map[string]string
type Environment ¶ added in v0.0.225
type Environment struct {
Envs map[string]interface{}
}
func (*Environment) APIStruct ¶ added in v0.0.225
func (p *Environment) APIStruct() interface{}
func (*Environment) FieldNames ¶ added in v0.0.225
func (p *Environment) FieldNames() []string
func (*Environment) Records ¶ added in v0.0.225
func (p *Environment) Records() []map[string]string
type IPAddresses ¶
func (*IPAddresses) APIStruct ¶ added in v0.0.133
func (p *IPAddresses) APIStruct() interface{}
func (*IPAddresses) FieldNames ¶
func (p *IPAddresses) FieldNames() []string
func (*IPAddresses) Records ¶
func (p *IPAddresses) Records() []map[string]string
type ImageDetails ¶ added in v0.0.246
type ImageDetails struct { ImageDetails api.ImageVersion TrackingEnabled bool }
func (*ImageDetails) APIStruct ¶ added in v0.0.246
func (p *ImageDetails) APIStruct() interface{}
func (*ImageDetails) FieldNames ¶ added in v0.0.246
func (p *ImageDetails) FieldNames() []string
func (*ImageDetails) Records ¶ added in v0.0.246
func (p *ImageDetails) Records() []map[string]string
type LogPresenter ¶ added in v0.0.109
type MachineEvents ¶ added in v0.0.296
type MachineEvents struct {
Events []*api.MachineEvent
}
MachineEvents - Holds events for an allocation
func (*MachineEvents) APIStruct ¶ added in v0.0.296
func (p *MachineEvents) APIStruct() interface{}
APIStruct - returns an interface to allocation events
func (*MachineEvents) FieldNames ¶ added in v0.0.296
func (p *MachineEvents) FieldNames() []string
FieldNames - returns the field names for an allocation event
func (*MachineEvents) Records ¶ added in v0.0.296
func (p *MachineEvents) Records() []map[string]string
Records - formats allocation events into a map
type Machines ¶ added in v0.0.296
func (*Machines) FieldNames ¶ added in v0.0.296
type Presentable ¶
type Presentable interface { FieldNames() []string Records() []map[string]string APIStruct() interface{} }
Presentable - Records (and field names) which may be presented by a Presenter
type Presenter ¶
type Presenter struct { Item Presentable Out io.Writer Opts Options }
Presenter - A self managing presenter which can be rendered in multiple ways