Help us shape the future of Go! Take the 2026 Go Developer Survey

presenters

package
v0.0.136 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Types

type AllocationChecks added in v0.0.109

type AllocationChecks struct {
	Checks []api.CheckState
}

func (*AllocationChecks) APIStruct added in v0.0.133

func (p *AllocationChecks) APIStruct() interface{}

func (*AllocationChecks) FieldNames added in v0.0.109

func (p *AllocationChecks) FieldNames() []string

func (*AllocationChecks) Records added in v0.0.109

func (p *AllocationChecks) Records() []map[string]string

type AllocationEvents added in v0.0.109

type AllocationEvents struct {
	Events []api.AllocationEvent
}

func (*AllocationEvents) APIStruct added in v0.0.133

func (p *AllocationEvents) APIStruct() interface{}

func (*AllocationEvents) FieldNames added in v0.0.109

func (p *AllocationEvents) FieldNames() []string

func (*AllocationEvents) Records added in v0.0.109

func (p *AllocationEvents) Records() []map[string]string

type Allocations

type Allocations struct {
	Allocations []*api.AllocationStatus
}

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 AppHistory

type AppHistory struct {
	AppChanges []api.AppChange
}

func (*AppHistory) APIStruct added in v0.0.133

func (p *AppHistory) APIStruct() interface{}

func (*AppHistory) FieldNames

func (p *AppHistory) FieldNames() []string

func (*AppHistory) Records

func (p *AppHistory) Records() []map[string]string

type AppInfo

type AppInfo struct {
	App api.App
}

func (*AppInfo) APIStruct added in v0.0.133

func (p *AppInfo) APIStruct() interface{}

func (*AppInfo) FieldNames

func (p *AppInfo) FieldNames() []string

func (*AppInfo) Records

func (p *AppInfo) Records() []map[string]string

type AppStatus added in v0.0.135

type AppStatus struct {
	AppStatus api.AppStatus
}

func (*AppStatus) APIStruct added in v0.0.135

func (p *AppStatus) APIStruct() interface{}

func (*AppStatus) FieldNames added in v0.0.135

func (p *AppStatus) FieldNames() []string

func (*AppStatus) Records added in v0.0.135

func (p *AppStatus) Records() []map[string]string

type Apps

type Apps struct {
	App  *api.App
	Apps []api.App
}

func (*Apps) APIStruct added in v0.0.133

func (p *Apps) APIStruct() interface{}

func (*Apps) FieldNames

func (p *Apps) FieldNames() []string

func (*Apps) Records

func (p *Apps) Records() []map[string]string

type AutoscalingRegionConfigs added in v0.0.98

type AutoscalingRegionConfigs struct {
	Regions []api.AutoscalingRegionConfig
}

func (*AutoscalingRegionConfigs) APIStruct added in v0.0.133

func (p *AutoscalingRegionConfigs) APIStruct() interface{}

func (*AutoscalingRegionConfigs) FieldNames added in v0.0.98

func (p *AutoscalingRegionConfigs) FieldNames() []string

func (*AutoscalingRegionConfigs) Records added in v0.0.98

func (p *AutoscalingRegionConfigs) Records() []map[string]string

type Builds

type Builds struct {
	Builds []api.Build
}

func (*Builds) APIStruct added in v0.0.133

func (p *Builds) APIStruct() interface{}

func (*Builds) FieldNames

func (p *Builds) FieldNames() []string

func (*Builds) Records

func (p *Builds) Records() []map[string]string

type Certificate

type Certificate struct {
	Certificate *api.AppCertificate
}

func (*Certificate) APIStruct added in v0.0.133

func (p *Certificate) APIStruct() interface{}

func (*Certificate) FieldNames

func (p *Certificate) FieldNames() []string

func (*Certificate) Records

func (p *Certificate) Records() []map[string]string

type Certificates

type Certificates struct {
	Certificates []api.AppCertificate
}

func (*Certificates) APIStruct added in v0.0.133

func (p *Certificates) APIStruct() interface{}

func (*Certificates) FieldNames

func (p *Certificates) FieldNames() []string

func (*Certificates) Records

func (p *Certificates) Records() []map[string]string

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 IPAddresses

type IPAddresses struct {
	IPAddresses []api.IPAddress
}

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 LogPresenter added in v0.0.109

type LogPresenter struct {
	RemoveNewlines bool
	HideRegion     bool
	HideAllocID    bool
}

func (*LogPresenter) FPrint added in v0.0.109

func (lp *LogPresenter) FPrint(w io.Writer, asJSON bool, entries []api.LogEntry)

type Options

type Options struct {
	Vertical   bool
	HideHeader bool
	Title      string
	AsJSON     bool
}

Options - Presenter options

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

func (*Presenter) Render

func (p *Presenter) Render() error

Render - Renders a presenter as a field list or table

type Regions added in v0.0.95

type Regions struct {
	Regions []api.Region
}

func (*Regions) APIStruct added in v0.0.133

func (p *Regions) APIStruct() interface{}

func (*Regions) FieldNames added in v0.0.95

func (p *Regions) FieldNames() []string

func (*Regions) Records added in v0.0.95

func (p *Regions) Records() []map[string]string

type Releases

type Releases struct {
	Releases []api.Release
	Release  *api.Release
}

func (*Releases) APIStruct added in v0.0.133

func (p *Releases) APIStruct() interface{}

func (*Releases) FieldNames

func (p *Releases) FieldNames() []string

func (*Releases) Records

func (p *Releases) Records() []map[string]string

type Secrets

type Secrets struct {
	Secrets []api.Secret
}

func (*Secrets) APIStruct added in v0.0.133

func (p *Secrets) APIStruct() interface{}

func (*Secrets) FieldNames

func (p *Secrets) FieldNames() []string

func (*Secrets) Records

func (p *Secrets) Records() []map[string]string

type Services

type Services struct {
	Services []api.Service
}

func (*Services) APIStruct added in v0.0.133

func (p *Services) APIStruct() interface{}

func (*Services) FieldNames

func (p *Services) FieldNames() []string

func (*Services) Records

func (p *Services) Records() []map[string]string

type SimpleServices added in v0.0.133

type SimpleServices struct {
	Services []api.Service
}

func (*SimpleServices) APIStruct added in v0.0.133

func (p *SimpleServices) APIStruct() interface{}

func (*SimpleServices) FieldNames added in v0.0.133

func (p *SimpleServices) FieldNames() []string

func (*SimpleServices) Records added in v0.0.133

func (p *SimpleServices) Records() []map[string]string

type VMSizes added in v0.0.98

type VMSizes struct {
	VMSizes []api.VMSize
}

func (*VMSizes) APIStruct added in v0.0.133

func (p *VMSizes) APIStruct() interface{}

func (*VMSizes) FieldNames added in v0.0.98

func (p *VMSizes) FieldNames() []string

func (*VMSizes) Records added in v0.0.98

func (p *VMSizes) Records() []map[string]string

Jump to

Keyboard shortcuts

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