Documentation
¶
Index ¶
- func BytesToHumanReadibleUnit(bytes uint64) string
- func DisplayText(item Displayable, out io.Writer, noHeaders bool, includeCols []string) error
- type Account
- type Action
- type Balance
- type BillingHistory
- type Displayable
- type Displayer
- type Domain
- type DomainRecord
- type Firewall
- type FloatingIP
- type Image
- type Invoice
- type InvoiceList
- type InvoiceSummary
- type Kernel
- type Key
- type KeyGet
- type LoadBalancer
- type PlugDesc
- type Plugin
- type Project
- type ProjectResource
- type RateLimit
- type Region
- type Server
- type Size
- type Snapshot
- type Tag
- type VPC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHumanReadibleUnit ¶
BytesToHumanReadibleUnit converts byte input to a human-readable form using the largest notation possible.
func DisplayText ¶
DisplayText writes tabbed content to the passed in io.Writer while potentially adding or removing headers.
Types ¶
type BillingHistory ¶
type BillingHistory struct {
*bl.BillingHistory
}
func (*BillingHistory) ColMap ¶
func (i *BillingHistory) ColMap() map[string]string
func (*BillingHistory) Cols ¶
func (i *BillingHistory) Cols() []string
func (*BillingHistory) KV ¶
func (i *BillingHistory) KV() []map[string]interface{}
type Displayable ¶
type Displayable interface { Cols() []string ColMap() map[string]string KV() []map[string]interface{} JSON(io.Writer) error }
Displayable is a displable entity. These are used for printing results.
type Displayer ¶
type Displayer struct { OutputType string ColumnList string NoHeaders bool Item Displayable Out io.Writer }
Displayer has the display options, the item to display, and where to display to
type DomainRecord ¶
type DomainRecord struct {
DomainRecords bl.DomainRecords
}
func (*DomainRecord) ColMap ¶
func (dr *DomainRecord) ColMap() map[string]string
func (*DomainRecord) Cols ¶
func (dr *DomainRecord) Cols() []string
func (*DomainRecord) KV ¶
func (dr *DomainRecord) KV() []map[string]interface{}
type FloatingIP ¶
type FloatingIP struct {
FloatingIPs bl.FloatingIPs
}
func (*FloatingIP) ColMap ¶
func (fi *FloatingIP) ColMap() map[string]string
func (*FloatingIP) Cols ¶
func (fi *FloatingIP) Cols() []string
func (*FloatingIP) KV ¶
func (fi *FloatingIP) KV() []map[string]interface{}
type InvoiceList ¶
type InvoiceList struct {
*bl.InvoiceList
}
func (*InvoiceList) ColMap ¶
func (i *InvoiceList) ColMap() map[string]string
func (*InvoiceList) Cols ¶
func (i *InvoiceList) Cols() []string
func (*InvoiceList) KV ¶
func (i *InvoiceList) KV() []map[string]interface{}
type InvoiceSummary ¶
type InvoiceSummary struct {
*bl.InvoiceSummary
}
func (*InvoiceSummary) ColMap ¶
func (i *InvoiceSummary) ColMap() map[string]string
func (*InvoiceSummary) Cols ¶
func (i *InvoiceSummary) Cols() []string
func (*InvoiceSummary) KV ¶
func (i *InvoiceSummary) KV() []map[string]interface{}
type KeyGet ¶
KeyGet is used to display the SSH Key results from a `get` operation. This separate displayer is required in order to include the public key in this operation.
type LoadBalancer ¶
type LoadBalancer struct {
LoadBalancers bl.LoadBalancers
}
func (*LoadBalancer) ColMap ¶
func (lb *LoadBalancer) ColMap() map[string]string
func (*LoadBalancer) Cols ¶
func (lb *LoadBalancer) Cols() []string
func (*LoadBalancer) KV ¶
func (lb *LoadBalancer) KV() []map[string]interface{}
type ProjectResource ¶
type ProjectResource struct {
ProjectResources bl.ProjectResources
}
func (*ProjectResource) ColMap ¶
func (p *ProjectResource) ColMap() map[string]string
func (*ProjectResource) Cols ¶
func (p *ProjectResource) Cols() []string
func (*ProjectResource) KV ¶
func (p *ProjectResource) KV() []map[string]interface{}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.