displayers

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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 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 {
	NS     string
	Config doctl.Config
	Item   Displayable
	Out    io.Writer
}

func (*Displayer) Display

func (d *Displayer) Display() error

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 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
}

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 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 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 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