doctl: github.com/digitalocean/doctl/commands/displayers Index | Files

package displayers

import "github.com/digitalocean/doctl/commands/displayers"

Index

Package Files

1_click.go account.go action.go balance.go billing_history.go cdn.go certificate.go database.go domain.go droplet.go firewall.go floating_ip.go image.go invoice.go invoice_list.go invoice_summary.go kernel.go key.go kubernetes.go load_balancer.go output.go plugin.go project.go rate_limit.go region.go registry.go size.go snapshot.go tag.go util.go volume.go vpc.go

func BytesToHumanReadibleUnit Uses

func BytesToHumanReadibleUnit(bytes uint64) string

BytesToHumanReadibleUnit converts byte input to a human-readable form using the largest notation possible.

func DisplayText Uses

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.

type Account Uses

type Account struct {
    *do.Account
}

func (*Account) ColMap Uses

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

func (*Account) Cols Uses

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

func (*Account) JSON Uses

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

func (*Account) KV Uses

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

type Action Uses

type Action struct {
    Actions do.Actions
}

func (*Action) ColMap Uses

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

func (*Action) Cols Uses

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

func (*Action) JSON Uses

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

func (*Action) KV Uses

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

type Balance Uses

type Balance struct {
    *do.Balance
}

func (*Balance) ColMap Uses

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

func (*Balance) Cols Uses

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

func (*Balance) JSON Uses

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

func (*Balance) KV Uses

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

type BillingHistory Uses

type BillingHistory struct {
    *do.BillingHistory
}

func (*BillingHistory) ColMap Uses

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

func (*BillingHistory) Cols Uses

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

func (*BillingHistory) JSON Uses

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

func (*BillingHistory) KV Uses

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

type CDN Uses

type CDN struct {
    CDNs []do.CDN
}

func (*CDN) ColMap Uses

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

func (*CDN) Cols Uses

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

func (*CDN) JSON Uses

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

func (*CDN) KV Uses

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

type Certificate Uses

type Certificate struct {
    Certificates do.Certificates
}

func (*Certificate) ColMap Uses

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

func (*Certificate) Cols Uses

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

func (*Certificate) JSON Uses

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

func (*Certificate) KV Uses

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

type DatabaseBackups Uses

type DatabaseBackups struct {
    DatabaseBackups do.DatabaseBackups
}

func (*DatabaseBackups) ColMap Uses

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

func (*DatabaseBackups) Cols Uses

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

func (*DatabaseBackups) JSON Uses

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

func (*DatabaseBackups) KV Uses

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

type DatabaseConnection Uses

type DatabaseConnection struct {
    DatabaseConnection do.DatabaseConnection
}

func (*DatabaseConnection) ColMap Uses

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

func (*DatabaseConnection) Cols Uses

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

func (*DatabaseConnection) JSON Uses

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

func (*DatabaseConnection) KV Uses

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

type DatabaseDBs Uses

type DatabaseDBs struct {
    DatabaseDBs do.DatabaseDBs
}

func (*DatabaseDBs) ColMap Uses

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

func (*DatabaseDBs) Cols Uses

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

func (*DatabaseDBs) JSON Uses

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

func (*DatabaseDBs) KV Uses

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

type DatabaseMaintenanceWindow Uses

type DatabaseMaintenanceWindow struct {
    DatabaseMaintenanceWindow do.DatabaseMaintenanceWindow
}

func (*DatabaseMaintenanceWindow) ColMap Uses

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

func (*DatabaseMaintenanceWindow) Cols Uses

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

func (*DatabaseMaintenanceWindow) JSON Uses

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

func (*DatabaseMaintenanceWindow) KV Uses

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

type DatabasePools Uses

type DatabasePools struct {
    DatabasePools do.DatabasePools
}

func (*DatabasePools) ColMap Uses

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

func (*DatabasePools) Cols Uses

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

func (*DatabasePools) JSON Uses

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

func (*DatabasePools) KV Uses

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

type DatabaseReplicas Uses

type DatabaseReplicas struct {
    DatabaseReplicas do.DatabaseReplicas
    Short            bool
}

func (*DatabaseReplicas) ColMap Uses

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

func (*DatabaseReplicas) Cols Uses

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

func (*DatabaseReplicas) JSON Uses

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

func (*DatabaseReplicas) KV Uses

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

type DatabaseSQLModes Uses

type DatabaseSQLModes struct {
    DatabaseSQLModes []string
}

func (*DatabaseSQLModes) ColMap Uses

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

func (*DatabaseSQLModes) Cols Uses

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

func (*DatabaseSQLModes) JSON Uses

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

func (*DatabaseSQLModes) KV Uses

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

type DatabaseUsers Uses

type DatabaseUsers struct {
    DatabaseUsers do.DatabaseUsers
}

func (*DatabaseUsers) ColMap Uses

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

func (*DatabaseUsers) Cols Uses

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

func (*DatabaseUsers) JSON Uses

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

func (*DatabaseUsers) KV Uses

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

type Databases Uses

type Databases struct {
    Databases do.Databases
    Short     bool
}

func (*Databases) ColMap Uses

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

func (*Databases) Cols Uses

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

func (*Databases) JSON Uses

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

func (*Databases) KV Uses

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

type Displayable Uses

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 Uses

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 Uses

func (d *Displayer) Display() error

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

type Domain Uses

type Domain struct {
    Domains do.Domains
}

func (*Domain) ColMap Uses

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

func (*Domain) Cols Uses

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

func (*Domain) JSON Uses

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

func (*Domain) KV Uses

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

type DomainRecord Uses

type DomainRecord struct {
    DomainRecords do.DomainRecords
}

func (*DomainRecord) ColMap Uses

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

func (*DomainRecord) Cols Uses

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

func (*DomainRecord) JSON Uses

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

func (*DomainRecord) KV Uses

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

type Droplet Uses

type Droplet struct {
    Droplets do.Droplets
}

func (*Droplet) ColMap Uses

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

func (*Droplet) Cols Uses

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

func (*Droplet) JSON Uses

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

func (*Droplet) KV Uses

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

type Firewall Uses

type Firewall struct {
    Firewalls do.Firewalls
}

func (*Firewall) ColMap Uses

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

func (*Firewall) Cols Uses

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

func (*Firewall) JSON Uses

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

func (*Firewall) KV Uses

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

type FloatingIP Uses

type FloatingIP struct {
    FloatingIPs do.FloatingIPs
}

func (*FloatingIP) ColMap Uses

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

func (*FloatingIP) Cols Uses

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

func (*FloatingIP) JSON Uses

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

func (*FloatingIP) KV Uses

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

type Image Uses

type Image struct {
    Images do.Images
}

func (*Image) ColMap Uses

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

func (*Image) Cols Uses

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

func (*Image) JSON Uses

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

func (*Image) KV Uses

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

type Invoice Uses

type Invoice struct {
    *do.Invoice
}

func (*Invoice) ColMap Uses

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

func (*Invoice) Cols Uses

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

func (*Invoice) JSON Uses

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

func (*Invoice) KV Uses

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

type InvoiceList Uses

type InvoiceList struct {
    *do.InvoiceList
}

func (*InvoiceList) ColMap Uses

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

func (*InvoiceList) Cols Uses

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

func (*InvoiceList) JSON Uses

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

func (*InvoiceList) KV Uses

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

type InvoiceSummary Uses

type InvoiceSummary struct {
    *do.InvoiceSummary
}

func (*InvoiceSummary) ColMap Uses

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

func (*InvoiceSummary) Cols Uses

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

func (*InvoiceSummary) JSON Uses

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

func (*InvoiceSummary) KV Uses

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

type Kernel Uses

type Kernel struct {
    Kernels do.Kernels
}

func (*Kernel) ColMap Uses

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

func (*Kernel) Cols Uses

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

func (*Kernel) JSON Uses

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

func (*Kernel) KV Uses

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

type Key Uses

type Key struct {
    Keys do.SSHKeys
}

func (*Key) ColMap Uses

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

func (*Key) Cols Uses

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

func (*Key) JSON Uses

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

func (*Key) KV Uses

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

type KubernetesClusters Uses

type KubernetesClusters struct {
    KubernetesClusters do.KubernetesClusters
    Short              bool
}

func (*KubernetesClusters) ColMap Uses

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

func (*KubernetesClusters) Cols Uses

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

func (*KubernetesClusters) JSON Uses

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

func (*KubernetesClusters) KV Uses

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

type KubernetesNodePools Uses

type KubernetesNodePools struct {
    KubernetesNodePools do.KubernetesNodePools
}

func (*KubernetesNodePools) ColMap Uses

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

func (*KubernetesNodePools) Cols Uses

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

func (*KubernetesNodePools) JSON Uses

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

func (*KubernetesNodePools) KV Uses

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

type KubernetesNodeSizes Uses

type KubernetesNodeSizes struct {
    KubernetesNodeSizes do.KubernetesNodeSizes
}

func (*KubernetesNodeSizes) ColMap Uses

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

func (*KubernetesNodeSizes) Cols Uses

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

func (*KubernetesNodeSizes) JSON Uses

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

func (*KubernetesNodeSizes) KV Uses

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

type KubernetesRegions Uses

type KubernetesRegions struct {
    KubernetesRegions do.KubernetesRegions
}

func (*KubernetesRegions) ColMap Uses

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

func (*KubernetesRegions) Cols Uses

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

func (*KubernetesRegions) JSON Uses

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

func (*KubernetesRegions) KV Uses

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

type KubernetesVersions Uses

type KubernetesVersions struct {
    KubernetesVersions do.KubernetesVersions
}

func (*KubernetesVersions) ColMap Uses

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

func (*KubernetesVersions) Cols Uses

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

func (*KubernetesVersions) JSON Uses

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

func (*KubernetesVersions) KV Uses

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

type LoadBalancer Uses

type LoadBalancer struct {
    LoadBalancers do.LoadBalancers
}

func (*LoadBalancer) ColMap Uses

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

func (*LoadBalancer) Cols Uses

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

func (*LoadBalancer) JSON Uses

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

func (*LoadBalancer) KV Uses

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

type OneClick Uses

type OneClick struct {
    OneClicks do.OneClicks
}

OneClick is the struct with the OneClickService on it.

func (*OneClick) ColMap Uses

func (oc *OneClick) ColMap() map[string]string

ColMap maps the column names

func (*OneClick) Cols Uses

func (oc *OneClick) Cols() []string

Cols are the colums returned in the json

func (*OneClick) JSON Uses

func (oc *OneClick) JSON(out io.Writer) error

JSON handles writing the json

func (*OneClick) KV Uses

func (oc *OneClick) KV() []map[string]interface{}

KV maps the values of a 1-click to an output

type PlugDesc Uses

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

type Plugin Uses

type Plugin struct {
    Plugins []PlugDesc
}

func (*Plugin) ColMap Uses

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

func (*Plugin) Cols Uses

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

func (*Plugin) JSON Uses

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

func (*Plugin) KV Uses

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

type Project Uses

type Project struct {
    Projects do.Projects
}

func (*Project) ColMap Uses

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

func (*Project) Cols Uses

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

func (*Project) JSON Uses

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

func (*Project) KV Uses

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

type ProjectResource Uses

type ProjectResource struct {
    ProjectResources do.ProjectResources
}

func (*ProjectResource) ColMap Uses

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

func (*ProjectResource) Cols Uses

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

func (*ProjectResource) JSON Uses

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

func (*ProjectResource) KV Uses

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

type RateLimit Uses

type RateLimit struct {
    *do.RateLimit
}

func (*RateLimit) ColMap Uses

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

func (*RateLimit) Cols Uses

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

func (*RateLimit) JSON Uses

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

func (*RateLimit) KV Uses

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

type Region Uses

type Region struct {
    Regions do.Regions
}

func (*Region) ColMap Uses

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

func (*Region) Cols Uses

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

func (*Region) JSON Uses

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

func (*Region) KV Uses

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

type Registry Uses

type Registry struct {
    Registries []do.Registry
}

func (*Registry) ColMap Uses

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

func (*Registry) Cols Uses

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

func (*Registry) JSON Uses

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

func (*Registry) KV Uses

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

type Repository Uses

type Repository struct {
    Repositories []do.Repository
}

func (*Repository) ColMap Uses

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

func (*Repository) Cols Uses

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

func (*Repository) JSON Uses

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

func (*Repository) KV Uses

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

type RepositoryTag Uses

type RepositoryTag struct {
    Tags []do.RepositoryTag
}

func (*RepositoryTag) ColMap Uses

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

func (*RepositoryTag) Cols Uses

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

func (*RepositoryTag) JSON Uses

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

func (*RepositoryTag) KV Uses

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

type Size Uses

type Size struct {
    Sizes do.Sizes
}

func (*Size) ColMap Uses

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

func (*Size) Cols Uses

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

func (*Size) JSON Uses

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

func (*Size) KV Uses

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

type Snapshot Uses

type Snapshot struct {
    Snapshots do.Snapshots
}

func (*Snapshot) ColMap Uses

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

func (*Snapshot) Cols Uses

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

func (*Snapshot) JSON Uses

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

func (*Snapshot) KV Uses

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

type Tag Uses

type Tag struct {
    Tags do.Tags
}

func (*Tag) ColMap Uses

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

func (*Tag) Cols Uses

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

func (*Tag) JSON Uses

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

func (*Tag) KV Uses

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

type VPC Uses

type VPC struct {
    VPCs do.VPCs
}

func (*VPC) ColMap Uses

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

func (*VPC) Cols Uses

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

func (*VPC) JSON Uses

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

func (*VPC) KV Uses

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

type Volume Uses

type Volume struct {
    Volumes []do.Volume
}

func (*Volume) ColMap Uses

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

func (*Volume) Cols Uses

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

func (*Volume) JSON Uses

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

func (*Volume) KV Uses

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

Package displayers imports 11 packages (graph) and is imported by 4 packages. Updated 2020-07-03. Refresh now. Tools for package owners.