displayers

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayText added in v1.32.2

func DisplayText(item Displayable, out io.Writer, noHeaders bool, includeCols []string) error

DisplayText writes tabbed content to the passed in io.Writer while potentially adding or removing headers.

Types

type Account

type Account struct {
	*do.Account
}

func (*Account) ColMap

func (a *Account) ColMap() map[string]string

func (*Account) Cols

func (a *Account) Cols() []string

func (*Account) JSON

func (a *Account) JSON(out io.Writer) error

func (*Account) KV

func (a *Account) KV() []map[string]interface{}

type Action

type Action struct {
	Actions do.Actions
}

func (*Action) ColMap

func (a *Action) ColMap() map[string]string

func (*Action) Cols

func (a *Action) Cols() []string

func (*Action) JSON

func (a *Action) JSON(out io.Writer) error

func (*Action) KV

func (a *Action) KV() []map[string]interface{}

type Balance added in v1.37.0

type Balance struct {
	*do.Balance
}

func (*Balance) ColMap added in v1.37.0

func (a *Balance) ColMap() map[string]string

func (*Balance) Cols added in v1.37.0

func (a *Balance) Cols() []string

func (*Balance) JSON added in v1.37.0

func (a *Balance) JSON(out io.Writer) error

func (*Balance) KV added in v1.37.0

func (a *Balance) KV() []map[string]interface{}

type BillingHistory added in v1.40.0

type BillingHistory struct {
	*do.BillingHistory
}

func (*BillingHistory) ColMap added in v1.40.0

func (i *BillingHistory) ColMap() map[string]string

func (*BillingHistory) Cols added in v1.40.0

func (i *BillingHistory) Cols() []string

func (*BillingHistory) JSON added in v1.40.0

func (i *BillingHistory) JSON(out io.Writer) error

func (*BillingHistory) KV added in v1.40.0

func (i *BillingHistory) KV() []map[string]interface{}

type CDN

type CDN struct {
	CDNs []do.CDN
}

func (*CDN) ColMap

func (c *CDN) ColMap() map[string]string

func (*CDN) Cols

func (c *CDN) Cols() []string

func (*CDN) JSON

func (c *CDN) JSON(out io.Writer) error

func (*CDN) KV

func (c *CDN) KV() []map[string]interface{}

type Certificate

type Certificate struct {
	Certificates do.Certificates
}

func (*Certificate) ColMap

func (c *Certificate) ColMap() map[string]string

func (*Certificate) Cols

func (c *Certificate) Cols() []string

func (*Certificate) JSON

func (c *Certificate) JSON(out io.Writer) error

func (*Certificate) KV

func (c *Certificate) KV() []map[string]interface{}

type DatabaseBackups added in v1.15.0

type DatabaseBackups struct {
	DatabaseBackups do.DatabaseBackups
}

func (*DatabaseBackups) ColMap added in v1.15.0

func (db *DatabaseBackups) ColMap() map[string]string

func (*DatabaseBackups) Cols added in v1.15.0

func (db *DatabaseBackups) Cols() []string

func (*DatabaseBackups) JSON added in v1.15.0

func (db *DatabaseBackups) JSON(out io.Writer) error

func (*DatabaseBackups) KV added in v1.15.0

func (db *DatabaseBackups) KV() []map[string]interface{}

type DatabaseConnection added in v1.15.0

type DatabaseConnection struct {
	DatabaseConnection do.DatabaseConnection
}

func (*DatabaseConnection) ColMap added in v1.15.0

func (dc *DatabaseConnection) ColMap() map[string]string

func (*DatabaseConnection) Cols added in v1.15.0

func (dc *DatabaseConnection) Cols() []string

func (*DatabaseConnection) JSON added in v1.15.0

func (dc *DatabaseConnection) JSON(out io.Writer) error

func (*DatabaseConnection) KV added in v1.15.0

func (dc *DatabaseConnection) KV() []map[string]interface{}

type DatabaseDBs added in v1.15.0

type DatabaseDBs struct {
	DatabaseDBs do.DatabaseDBs
}

func (*DatabaseDBs) ColMap added in v1.15.0

func (db *DatabaseDBs) ColMap() map[string]string

func (*DatabaseDBs) Cols added in v1.15.0

func (db *DatabaseDBs) Cols() []string

func (*DatabaseDBs) JSON added in v1.15.0

func (db *DatabaseDBs) JSON(out io.Writer) error

func (*DatabaseDBs) KV added in v1.15.0

func (db *DatabaseDBs) KV() []map[string]interface{}

type DatabaseMaintenanceWindow added in v1.15.0

type DatabaseMaintenanceWindow struct {
	DatabaseMaintenanceWindow do.DatabaseMaintenanceWindow
}

func (*DatabaseMaintenanceWindow) ColMap added in v1.15.0

func (dmw *DatabaseMaintenanceWindow) ColMap() map[string]string

func (*DatabaseMaintenanceWindow) Cols added in v1.15.0

func (dmw *DatabaseMaintenanceWindow) Cols() []string

func (*DatabaseMaintenanceWindow) JSON added in v1.15.0

func (dmw *DatabaseMaintenanceWindow) JSON(out io.Writer) error

func (*DatabaseMaintenanceWindow) KV added in v1.15.0

func (dmw *DatabaseMaintenanceWindow) KV() []map[string]interface{}

type DatabasePools added in v1.15.0

type DatabasePools struct {
	DatabasePools do.DatabasePools
}

func (*DatabasePools) ColMap added in v1.15.0

func (dp *DatabasePools) ColMap() map[string]string

func (*DatabasePools) Cols added in v1.15.0

func (dp *DatabasePools) Cols() []string

func (*DatabasePools) JSON added in v1.15.0

func (dp *DatabasePools) JSON(out io.Writer) error

func (*DatabasePools) KV added in v1.15.0

func (dp *DatabasePools) KV() []map[string]interface{}

type DatabaseReplicas added in v1.15.0

type DatabaseReplicas struct {
	DatabaseReplicas do.DatabaseReplicas
	Short            bool
}

func (*DatabaseReplicas) ColMap added in v1.15.0

func (dr *DatabaseReplicas) ColMap() map[string]string

func (*DatabaseReplicas) Cols added in v1.15.0

func (dr *DatabaseReplicas) Cols() []string

func (*DatabaseReplicas) JSON added in v1.15.0

func (dr *DatabaseReplicas) JSON(out io.Writer) error

func (*DatabaseReplicas) KV added in v1.15.0

func (dr *DatabaseReplicas) KV() []map[string]interface{}

type DatabaseSQLModes added in v1.35.0

type DatabaseSQLModes struct {
	DatabaseSQLModes []string
}

func (*DatabaseSQLModes) ColMap added in v1.35.0

func (dsm *DatabaseSQLModes) ColMap() map[string]string

func (*DatabaseSQLModes) Cols added in v1.35.0

func (dsm *DatabaseSQLModes) Cols() []string

func (*DatabaseSQLModes) JSON added in v1.35.0

func (dsm *DatabaseSQLModes) JSON(out io.Writer) error

func (*DatabaseSQLModes) KV added in v1.35.0

func (dsm *DatabaseSQLModes) KV() []map[string]interface{}

type DatabaseUsers added in v1.15.0

type DatabaseUsers struct {
	DatabaseUsers do.DatabaseUsers
}

func (*DatabaseUsers) ColMap added in v1.15.0

func (du *DatabaseUsers) ColMap() map[string]string

func (*DatabaseUsers) Cols added in v1.15.0

func (du *DatabaseUsers) Cols() []string

func (*DatabaseUsers) JSON added in v1.15.0

func (du *DatabaseUsers) JSON(out io.Writer) error

func (*DatabaseUsers) KV added in v1.15.0

func (du *DatabaseUsers) KV() []map[string]interface{}

type Databases added in v1.15.0

type Databases struct {
	Databases do.Databases
	Short     bool
}

func (*Databases) ColMap added in v1.15.0

func (d *Databases) ColMap() map[string]string

func (*Databases) Cols added in v1.15.0

func (d *Databases) Cols() []string

func (*Databases) JSON added in v1.15.0

func (d *Databases) JSON(out io.Writer) error

func (*Databases) KV added in v1.15.0

func (d *Databases) 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

func (*Displayer) Display

func (d *Displayer) Display() error

Display ends up rendering the content in one of two formats (text|json)

type Domain

type Domain struct {
	Domains do.Domains
}

func (*Domain) ColMap

func (d *Domain) ColMap() map[string]string

func (*Domain) Cols

func (d *Domain) Cols() []string

func (*Domain) JSON

func (d *Domain) JSON(out io.Writer) error

func (*Domain) KV

func (d *Domain) KV() []map[string]interface{}

type DomainRecord

type DomainRecord struct {
	DomainRecords do.DomainRecords
}

func (*DomainRecord) ColMap

func (dr *DomainRecord) ColMap() map[string]string

func (*DomainRecord) Cols

func (dr *DomainRecord) Cols() []string

func (*DomainRecord) JSON

func (dr *DomainRecord) JSON(out io.Writer) error

func (*DomainRecord) KV

func (dr *DomainRecord) KV() []map[string]interface{}

type Droplet

type Droplet struct {
	Droplets do.Droplets
}

func (*Droplet) ColMap

func (d *Droplet) ColMap() map[string]string

func (*Droplet) Cols

func (d *Droplet) Cols() []string

func (*Droplet) JSON

func (d *Droplet) JSON(out io.Writer) error

func (*Droplet) KV

func (d *Droplet) KV() []map[string]interface{}

type Firewall

type Firewall struct {
	Firewalls do.Firewalls
}

func (*Firewall) ColMap

func (f *Firewall) ColMap() map[string]string

func (*Firewall) Cols

func (f *Firewall) Cols() []string

func (*Firewall) JSON

func (f *Firewall) JSON(out io.Writer) error

func (*Firewall) KV

func (f *Firewall) KV() []map[string]interface{}

type FloatingIP

type FloatingIP struct {
	FloatingIPs do.FloatingIPs
}

func (*FloatingIP) ColMap

func (fi *FloatingIP) ColMap() map[string]string

func (*FloatingIP) Cols

func (fi *FloatingIP) Cols() []string

func (*FloatingIP) JSON

func (fi *FloatingIP) JSON(out io.Writer) error

func (*FloatingIP) KV

func (fi *FloatingIP) KV() []map[string]interface{}

type Image

type Image struct {
	Images do.Images
}

func (*Image) ColMap

func (gi *Image) ColMap() map[string]string

func (*Image) Cols

func (gi *Image) Cols() []string

func (*Image) JSON

func (gi *Image) JSON(out io.Writer) error

func (*Image) KV

func (gi *Image) KV() []map[string]interface{}

type Invoice added in v1.39.0

type Invoice struct {
	*do.Invoice
}

func (*Invoice) ColMap added in v1.39.0

func (i *Invoice) ColMap() map[string]string

func (*Invoice) Cols added in v1.39.0

func (i *Invoice) Cols() []string

func (*Invoice) JSON added in v1.39.0

func (i *Invoice) JSON(out io.Writer) error

func (*Invoice) KV added in v1.39.0

func (i *Invoice) KV() []map[string]interface{}

type InvoiceList added in v1.39.0

type InvoiceList struct {
	*do.InvoiceList
}

func (*InvoiceList) ColMap added in v1.39.0

func (i *InvoiceList) ColMap() map[string]string

func (*InvoiceList) Cols added in v1.39.0

func (i *InvoiceList) Cols() []string

func (*InvoiceList) JSON added in v1.39.0

func (i *InvoiceList) JSON(out io.Writer) error

func (*InvoiceList) KV added in v1.39.0

func (i *InvoiceList) KV() []map[string]interface{}

type InvoiceSummary added in v1.39.0

type InvoiceSummary struct {
	*do.InvoiceSummary
}

func (*InvoiceSummary) ColMap added in v1.39.0

func (i *InvoiceSummary) ColMap() map[string]string

func (*InvoiceSummary) Cols added in v1.39.0

func (i *InvoiceSummary) Cols() []string

func (*InvoiceSummary) JSON added in v1.39.0

func (i *InvoiceSummary) JSON(out io.Writer) error

func (*InvoiceSummary) KV added in v1.39.0

func (i *InvoiceSummary) KV() []map[string]interface{}

type Kernel

type Kernel struct {
	Kernels do.Kernels
}

func (*Kernel) ColMap

func (ke *Kernel) ColMap() map[string]string

func (*Kernel) Cols

func (ke *Kernel) Cols() []string

func (*Kernel) JSON

func (ke *Kernel) JSON(out io.Writer) error

func (*Kernel) KV

func (ke *Kernel) KV() []map[string]interface{}

type Key

type Key struct {
	Keys do.SSHKeys
}

func (*Key) ColMap

func (ke *Key) ColMap() map[string]string

func (*Key) Cols

func (ke *Key) Cols() []string

func (*Key) JSON

func (ke *Key) JSON(out io.Writer) error

func (*Key) KV

func (ke *Key) KV() []map[string]interface{}

type KubernetesClusters added in v1.12.0

type KubernetesClusters struct {
	KubernetesClusters do.KubernetesClusters
	Short              bool
}

func (*KubernetesClusters) ColMap added in v1.12.0

func (clusters *KubernetesClusters) ColMap() map[string]string

func (*KubernetesClusters) Cols added in v1.12.0

func (clusters *KubernetesClusters) Cols() []string

func (*KubernetesClusters) JSON added in v1.12.0

func (clusters *KubernetesClusters) JSON(out io.Writer) error

func (*KubernetesClusters) KV added in v1.12.0

func (clusters *KubernetesClusters) KV() []map[string]interface{}

type KubernetesNodePools added in v1.12.0

type KubernetesNodePools struct {
	KubernetesNodePools do.KubernetesNodePools
}

func (*KubernetesNodePools) ColMap added in v1.12.0

func (nodePools *KubernetesNodePools) ColMap() map[string]string

func (*KubernetesNodePools) Cols added in v1.12.0

func (nodePools *KubernetesNodePools) Cols() []string

func (*KubernetesNodePools) JSON added in v1.12.0

func (nodePools *KubernetesNodePools) JSON(out io.Writer) error

func (*KubernetesNodePools) KV added in v1.12.0

func (nodePools *KubernetesNodePools) KV() []map[string]interface{}

type KubernetesNodeSizes added in v1.12.1

type KubernetesNodeSizes struct {
	KubernetesNodeSizes do.KubernetesNodeSizes
}

func (*KubernetesNodeSizes) ColMap added in v1.12.1

func (nodeSizes *KubernetesNodeSizes) ColMap() map[string]string

func (*KubernetesNodeSizes) Cols added in v1.12.1

func (nodeSizes *KubernetesNodeSizes) Cols() []string

func (*KubernetesNodeSizes) JSON added in v1.12.1

func (nodeSizes *KubernetesNodeSizes) JSON(out io.Writer) error

func (*KubernetesNodeSizes) KV added in v1.12.1

func (nodeSizes *KubernetesNodeSizes) KV() []map[string]interface{}

type KubernetesRegions added in v1.12.1

type KubernetesRegions struct {
	KubernetesRegions do.KubernetesRegions
}

func (*KubernetesRegions) ColMap added in v1.12.1

func (regions *KubernetesRegions) ColMap() map[string]string

func (*KubernetesRegions) Cols added in v1.12.1

func (regions *KubernetesRegions) Cols() []string

func (*KubernetesRegions) JSON added in v1.12.1

func (regions *KubernetesRegions) JSON(out io.Writer) error

func (*KubernetesRegions) KV added in v1.12.1

func (regions *KubernetesRegions) KV() []map[string]interface{}

type KubernetesVersions added in v1.12.0

type KubernetesVersions struct {
	KubernetesVersions do.KubernetesVersions
}

func (*KubernetesVersions) ColMap added in v1.12.0

func (versions *KubernetesVersions) ColMap() map[string]string

func (*KubernetesVersions) Cols added in v1.12.0

func (versions *KubernetesVersions) Cols() []string

func (*KubernetesVersions) JSON added in v1.12.0

func (versions *KubernetesVersions) JSON(out io.Writer) error

func (*KubernetesVersions) KV added in v1.12.0

func (versions *KubernetesVersions) KV() []map[string]interface{}

type LoadBalancer

type LoadBalancer struct {
	LoadBalancers do.LoadBalancers
}

func (*LoadBalancer) ColMap

func (lb *LoadBalancer) ColMap() map[string]string

func (*LoadBalancer) Cols

func (lb *LoadBalancer) Cols() []string

func (*LoadBalancer) JSON

func (lb *LoadBalancer) JSON(out io.Writer) error

func (*LoadBalancer) KV

func (lb *LoadBalancer) KV() []map[string]interface{}

type PlugDesc

type PlugDesc struct {
	Path string `json:"path"`
	Name string `json:"name"`
}

type Plugin

type Plugin struct {
	Plugins []PlugDesc
}

func (*Plugin) ColMap

func (p *Plugin) ColMap() map[string]string

func (*Plugin) Cols

func (p *Plugin) Cols() []string

func (*Plugin) JSON

func (p *Plugin) JSON(out io.Writer) error

func (*Plugin) KV

func (p *Plugin) KV() []map[string]interface{}

type Project

type Project struct {
	Projects do.Projects
}

func (*Project) ColMap

func (p *Project) ColMap() map[string]string

func (*Project) Cols

func (p *Project) Cols() []string

func (*Project) JSON

func (p *Project) JSON(out io.Writer) error

func (*Project) KV

func (p *Project) KV() []map[string]interface{}

type ProjectResource

type ProjectResource struct {
	ProjectResources do.ProjectResources
}

func (*ProjectResource) ColMap

func (p *ProjectResource) ColMap() map[string]string

func (*ProjectResource) Cols

func (p *ProjectResource) Cols() []string

func (*ProjectResource) JSON

func (p *ProjectResource) JSON(out io.Writer) error

func (*ProjectResource) KV

func (p *ProjectResource) KV() []map[string]interface{}

type RateLimit

type RateLimit struct {
	*do.RateLimit
}

func (*RateLimit) ColMap

func (rl *RateLimit) ColMap() map[string]string

func (*RateLimit) Cols

func (rl *RateLimit) Cols() []string

func (*RateLimit) JSON

func (rl *RateLimit) JSON(out io.Writer) error

func (*RateLimit) KV

func (rl *RateLimit) KV() []map[string]interface{}

type Region

type Region struct {
	Regions do.Regions
}

func (*Region) ColMap

func (re *Region) ColMap() map[string]string

func (*Region) Cols

func (re *Region) Cols() []string

func (*Region) JSON

func (re *Region) JSON(out io.Writer) error

func (*Region) KV

func (re *Region) KV() []map[string]interface{}

type Registry added in v1.34.0

type Registry struct {
	Registries []do.Registry
}

func (*Registry) ColMap added in v1.34.0

func (r *Registry) ColMap() map[string]string

func (*Registry) Cols added in v1.34.0

func (r *Registry) Cols() []string

func (*Registry) JSON added in v1.34.0

func (r *Registry) JSON(out io.Writer) error

func (*Registry) KV added in v1.34.0

func (r *Registry) KV() []map[string]interface{}

type Size

type Size struct {
	Sizes do.Sizes
}

func (*Size) ColMap

func (si *Size) ColMap() map[string]string

func (*Size) Cols

func (si *Size) Cols() []string

func (*Size) JSON

func (si *Size) JSON(out io.Writer) error

func (*Size) KV

func (si *Size) KV() []map[string]interface{}

type Snapshot

type Snapshot struct {
	Snapshots do.Snapshots
}

func (*Snapshot) ColMap

func (s *Snapshot) ColMap() map[string]string

func (*Snapshot) Cols

func (s *Snapshot) Cols() []string

func (*Snapshot) JSON

func (s *Snapshot) JSON(out io.Writer) error

func (*Snapshot) KV

func (s *Snapshot) KV() []map[string]interface{}

type Tag

type Tag struct {
	Tags do.Tags
}

func (*Tag) ColMap

func (t *Tag) ColMap() map[string]string

func (*Tag) Cols

func (t *Tag) Cols() []string

func (*Tag) JSON

func (t *Tag) JSON(out io.Writer) error

func (*Tag) KV

func (t *Tag) KV() []map[string]interface{}

type VPC added in v1.40.0

type VPC struct {
	VPCs do.VPCs
}

func (*VPC) ColMap added in v1.40.0

func (v *VPC) ColMap() map[string]string

func (*VPC) Cols added in v1.40.0

func (v *VPC) Cols() []string

func (*VPC) JSON added in v1.40.0

func (v *VPC) JSON(out io.Writer) error

func (*VPC) KV added in v1.40.0

func (v *VPC) KV() []map[string]interface{}

type Volume

type Volume struct {
	Volumes []do.Volume
}

func (*Volume) ColMap

func (a *Volume) ColMap() map[string]string

func (*Volume) Cols

func (a *Volume) Cols() []string

func (*Volume) JSON

func (a *Volume) JSON(out io.Writer) error

func (*Volume) KV

func (a *Volume) KV() []map[string]interface{}

Jump to

Keyboard shortcuts

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