displayers

package
v1.107.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToHumanReadableUnit added in v1.66.0

func BytesToHumanReadableUnit(bytes uint64) string

BytesToHumanReadableUnit converts byte input to a human-readable form using the largest notation possible in decimal base.

func BytesToHumanReadableUnitBinary added in v1.66.0

func BytesToHumanReadableUnitBinary(bytes uint64) string

BytesToHumanReadableUnitBinary converts byte input to a human-readable form using the largest notation possible in binary base.

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.

func GetActivationFunctionName added in v1.85.0

func GetActivationFunctionName(a whisk.Activation) string

Gets the full function name for the activation.

func GetActivationPackageName added in v1.85.0

func GetActivationPackageName(a whisk.Activation) string

func GetActivationStatus added in v1.85.0

func GetActivationStatus(statusCode int) string

converts numeric status codes to typical string

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

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

type Activation added in v1.85.0

type Activation struct {
	Activations []whisk.Activation
}

func (*Activation) ColMap added in v1.85.0

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

ColMap implements Displayable

func (*Activation) Cols added in v1.85.0

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

Cols implements Displayable

func (*Activation) JSON added in v1.85.0

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

JSON implements Displayable

func (*Activation) KV added in v1.85.0

func (a *Activation) KV() []map[string]any

KV implements Displayable

type AlertPolicy added in v1.63.1

type AlertPolicy struct {
	AlertPolicies do.AlertPolicies
}

func (*AlertPolicy) ColMap added in v1.63.1

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

func (*AlertPolicy) Cols added in v1.63.1

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

func (*AlertPolicy) JSON added in v1.63.1

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

func (*AlertPolicy) KV added in v1.63.1

func (a *AlertPolicy) KV() []map[string]any

type AppAlerts added in v1.64.0

type AppAlerts []*godo.AppAlert

func (AppAlerts) ColMap added in v1.64.0

func (a AppAlerts) ColMap() map[string]string

func (AppAlerts) Cols added in v1.64.0

func (a AppAlerts) Cols() []string

func (AppAlerts) JSON added in v1.64.0

func (a AppAlerts) JSON(w io.Writer) error

func (AppAlerts) KV added in v1.64.0

func (a AppAlerts) KV() []map[string]any

type AppInstanceSizes added in v1.50.0

type AppInstanceSizes []*godo.AppInstanceSize

func (AppInstanceSizes) ColMap added in v1.50.0

func (is AppInstanceSizes) ColMap() map[string]string

func (AppInstanceSizes) Cols added in v1.50.0

func (is AppInstanceSizes) Cols() []string

func (AppInstanceSizes) JSON added in v1.50.0

func (is AppInstanceSizes) JSON(w io.Writer) error

func (AppInstanceSizes) KV added in v1.50.0

func (is AppInstanceSizes) KV() []map[string]any

type AppProposeResponse added in v1.59.0

type AppProposeResponse struct {
	Res *godo.AppProposeResponse
}

func (AppProposeResponse) ColMap added in v1.59.0

func (r AppProposeResponse) ColMap() map[string]string

func (AppProposeResponse) Cols added in v1.59.0

func (r AppProposeResponse) Cols() []string

func (AppProposeResponse) JSON added in v1.59.0

func (r AppProposeResponse) JSON(w io.Writer) error

func (AppProposeResponse) KV added in v1.59.0

func (r AppProposeResponse) KV() []map[string]any

type AppRegions added in v1.50.0

type AppRegions []*godo.AppRegion

func (AppRegions) ColMap added in v1.50.0

func (r AppRegions) ColMap() map[string]string

func (AppRegions) Cols added in v1.50.0

func (r AppRegions) Cols() []string

func (AppRegions) JSON added in v1.50.0

func (r AppRegions) JSON(w io.Writer) error

func (AppRegions) KV added in v1.50.0

func (r AppRegions) KV() []map[string]any

type AppTiers added in v1.50.0

type AppTiers []*godo.AppTier

func (AppTiers) ColMap added in v1.50.0

func (t AppTiers) ColMap() map[string]string

func (AppTiers) Cols added in v1.50.0

func (t AppTiers) Cols() []string

func (AppTiers) JSON added in v1.50.0

func (t AppTiers) JSON(w io.Writer) error

func (AppTiers) KV added in v1.50.0

func (t AppTiers) KV() []map[string]any

type Apps added in v1.46.0

type Apps []*godo.App

func (Apps) ColMap added in v1.46.0

func (a Apps) ColMap() map[string]string

func (Apps) Cols added in v1.46.0

func (a Apps) Cols() []string

func (Apps) JSON added in v1.46.0

func (a Apps) JSON(w io.Writer) error

func (Apps) KV added in v1.46.0

func (a Apps) KV() []map[string]any

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

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

type Buildpacks added in v1.86.0

type Buildpacks []*godo.Buildpack

func (Buildpacks) ColMap added in v1.86.0

func (b Buildpacks) ColMap() map[string]string

func (Buildpacks) Cols added in v1.86.0

func (b Buildpacks) Cols() []string

func (Buildpacks) JSON added in v1.86.0

func (b Buildpacks) JSON(w io.Writer) error

func (Buildpacks) KV added in v1.86.0

func (b Buildpacks) KV() []map[string]any

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

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

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

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

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

type DatabaseEvents added in v1.106.0

type DatabaseEvents struct {
	DatabaseEvents do.DatabaseEvents
}

func (*DatabaseEvents) ColMap added in v1.106.0

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

func (*DatabaseEvents) Cols added in v1.106.0

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

func (*DatabaseEvents) JSON added in v1.106.0

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

func (*DatabaseEvents) KV added in v1.106.0

func (dr *DatabaseEvents) KV() []map[string]any

type DatabaseFirewallRules added in v1.56.0

type DatabaseFirewallRules struct {
	DatabaseFirewallRules do.DatabaseFirewallRules
}

func (*DatabaseFirewallRules) ColMap added in v1.56.0

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

func (*DatabaseFirewallRules) Cols added in v1.56.0

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

func (*DatabaseFirewallRules) JSON added in v1.56.0

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

func (*DatabaseFirewallRules) KV added in v1.56.0

func (dr *DatabaseFirewallRules) KV() []map[string]any

type DatabaseKafkaTopic added in v1.101.0

type DatabaseKafkaTopic struct {
	DatabaseTopic do.DatabaseTopic
}

func (*DatabaseKafkaTopic) ColMap added in v1.101.0

func (dt *DatabaseKafkaTopic) ColMap() map[string]string

func (*DatabaseKafkaTopic) Cols added in v1.101.0

func (dt *DatabaseKafkaTopic) Cols() []string

func (*DatabaseKafkaTopic) JSON added in v1.101.0

func (dt *DatabaseKafkaTopic) JSON(out io.Writer) error

func (*DatabaseKafkaTopic) KV added in v1.101.0

func (dt *DatabaseKafkaTopic) KV() []map[string]any

type DatabaseKafkaTopicPartitions added in v1.101.0

type DatabaseKafkaTopicPartitions struct {
	DatabaseTopicPartitions []*godo.TopicPartition
}

func (*DatabaseKafkaTopicPartitions) ColMap added in v1.101.0

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

func (*DatabaseKafkaTopicPartitions) Cols added in v1.101.0

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

func (*DatabaseKafkaTopicPartitions) JSON added in v1.101.0

func (*DatabaseKafkaTopicPartitions) KV added in v1.101.0

func (dp *DatabaseKafkaTopicPartitions) KV() []map[string]any

type DatabaseKafkaTopics added in v1.101.0

type DatabaseKafkaTopics struct {
	DatabaseTopics do.DatabaseTopics
}

func (*DatabaseKafkaTopics) ColMap added in v1.101.0

func (dt *DatabaseKafkaTopics) ColMap() map[string]string

func (*DatabaseKafkaTopics) Cols added in v1.101.0

func (dt *DatabaseKafkaTopics) Cols() []string

func (*DatabaseKafkaTopics) JSON added in v1.101.0

func (dt *DatabaseKafkaTopics) JSON(out io.Writer) error

func (*DatabaseKafkaTopics) KV added in v1.101.0

func (dt *DatabaseKafkaTopics) KV() []map[string]any

type DatabaseLayoutOptions added in v1.79.0

type DatabaseLayoutOptions struct {
	Layouts []godo.DatabaseLayout
}

func (*DatabaseLayoutOptions) ColMap added in v1.79.0

func (dbl *DatabaseLayoutOptions) ColMap() map[string]string

func (*DatabaseLayoutOptions) Cols added in v1.79.0

func (dbl *DatabaseLayoutOptions) Cols() []string

func (*DatabaseLayoutOptions) JSON added in v1.79.0

func (dbl *DatabaseLayoutOptions) JSON(out io.Writer) error

func (*DatabaseLayoutOptions) KV added in v1.79.0

func (dbl *DatabaseLayoutOptions) KV() []map[string]any

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

type DatabaseOptions added in v1.79.0

type DatabaseOptions struct {
	DatabaseOptions do.DatabaseOptions
}

func (*DatabaseOptions) ColMap added in v1.79.0

func (do *DatabaseOptions) ColMap() map[string]string

func (*DatabaseOptions) Cols added in v1.79.0

func (do *DatabaseOptions) Cols() []string

func (*DatabaseOptions) JSON added in v1.79.0

func (do *DatabaseOptions) JSON(out io.Writer) error

func (*DatabaseOptions) KV added in v1.79.0

func (do *DatabaseOptions) KV() []map[string]any

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

type DatabaseRegionOptions added in v1.79.0

type DatabaseRegionOptions struct {
	RegionMap map[string][]string
}

func (*DatabaseRegionOptions) ColMap added in v1.79.0

func (dbr *DatabaseRegionOptions) ColMap() map[string]string

func (*DatabaseRegionOptions) Cols added in v1.79.0

func (dbr *DatabaseRegionOptions) Cols() []string

func (*DatabaseRegionOptions) JSON added in v1.79.0

func (dbr *DatabaseRegionOptions) JSON(out io.Writer) error

func (*DatabaseRegionOptions) KV added in v1.79.0

func (dbr *DatabaseRegionOptions) KV() []map[string]any

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

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

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

type DatabaseVersionOptions added in v1.79.0

type DatabaseVersionOptions struct {
	VersionMap map[string][]string
}

func (*DatabaseVersionOptions) ColMap added in v1.79.0

func (dbv *DatabaseVersionOptions) ColMap() map[string]string

func (*DatabaseVersionOptions) Cols added in v1.79.0

func (dbv *DatabaseVersionOptions) Cols() []string

func (*DatabaseVersionOptions) JSON added in v1.79.0

func (dbv *DatabaseVersionOptions) JSON(out io.Writer) error

func (*DatabaseVersionOptions) KV added in v1.79.0

func (dbv *DatabaseVersionOptions) KV() []map[string]any

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

type Deployments added in v1.46.0

type Deployments []*godo.Deployment

func (Deployments) ColMap added in v1.46.0

func (d Deployments) ColMap() map[string]string

func (Deployments) Cols added in v1.46.0

func (d Deployments) Cols() []string

func (Deployments) JSON added in v1.46.0

func (d Deployments) JSON(w io.Writer) error

func (Deployments) KV added in v1.46.0

func (d Deployments) KV() []map[string]any

type Displayable

type Displayable interface {
	Cols() []string
	ColMap() map[string]string
	KV() []map[string]any
	JSON(io.Writer) error
}

Displayable is a displayable 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]any

type DomainRecord

type DomainRecord struct {
	DomainRecords do.DomainRecords
	Short         bool
}

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

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

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

type Functions added in v1.78.0

type Functions struct {
	Info []whisk.Action
}

Functions is the type of the displayer for functions list

func (*Functions) ColMap added in v1.78.0

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

ColMap is the displayer ColMap method specialized for functions list

func (*Functions) Cols added in v1.78.0

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

Cols is the displayer Cols method specialized for functions list

func (*Functions) JSON added in v1.78.0

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

JSON is the displayer JSON method specialized for functions list

func (*Functions) KV added in v1.78.0

func (i *Functions) KV() []map[string]any

KV is the displayer KV method specialized for functions list

type GarbageCollection added in v1.50.0

type GarbageCollection struct {
	GarbageCollections []do.GarbageCollection
}

func (*GarbageCollection) ColMap added in v1.50.0

func (g *GarbageCollection) ColMap() map[string]string

func (*GarbageCollection) Cols added in v1.50.0

func (g *GarbageCollection) Cols() []string

func (*GarbageCollection) JSON added in v1.50.0

func (g *GarbageCollection) JSON(out io.Writer) error

func (*GarbageCollection) KV added in v1.50.0

func (g *GarbageCollection) KV() []map[string]any

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

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

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

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

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

type Key

type Key struct {
	Keys do.SSHKeys
}

Key is used to display the SSH Key results from a `list` operation.

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

type KeyGet added in v1.49.0

type KeyGet struct {
	Keys do.SSHKeys
}

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.

func (*KeyGet) ColMap added in v1.49.0

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

func (*KeyGet) Cols added in v1.49.0

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

func (*KeyGet) JSON added in v1.49.0

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

func (*KeyGet) KV added in v1.49.0

func (ke *KeyGet) KV() []map[string]any

type KubernetesAssociatedResources added in v1.56.0

type KubernetesAssociatedResources struct {
	KubernetesAssociatedResources *do.KubernetesAssociatedResources
}

func (*KubernetesAssociatedResources) ColMap added in v1.56.0

func (ar *KubernetesAssociatedResources) ColMap() map[string]string

func (*KubernetesAssociatedResources) Cols added in v1.56.0

func (*KubernetesAssociatedResources) JSON added in v1.56.0

func (*KubernetesAssociatedResources) KV added in v1.56.0

func (ar *KubernetesAssociatedResources) KV() []map[string]any

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

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

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

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

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

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

type MySQLConfiguration added in v1.100.0

type MySQLConfiguration struct {
	MySQLConfiguration do.MySQLConfig
}

func (*MySQLConfiguration) ColMap added in v1.100.0

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

func (*MySQLConfiguration) Cols added in v1.100.0

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

func (*MySQLConfiguration) JSON added in v1.100.0

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

func (*MySQLConfiguration) KV added in v1.100.0

func (dc *MySQLConfiguration) KV() []map[string]any

type Namespaces added in v1.80.0

type Namespaces struct {
	Info []do.OutputNamespace
}

Namespaces is the type of the displayer for namespaces list

func (*Namespaces) ColMap added in v1.80.0

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

ColMap is the displayer ColMap method specialized for namespaces list

func (*Namespaces) Cols added in v1.80.0

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

Cols is the displayer Cols method specialized for namespaces list

func (*Namespaces) JSON added in v1.80.0

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

JSON is the displayer JSON method specialized for namespaces list

func (*Namespaces) KV added in v1.80.0

func (i *Namespaces) KV() []map[string]any

KV is the displayer KV method specialized for namespaces list

type OneClick added in v1.44.0

type OneClick struct {
	OneClicks do.OneClicks
}

OneClick is the struct with the OneClickService on it.

func (*OneClick) ColMap added in v1.44.0

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

ColMap maps the column names

func (*OneClick) Cols added in v1.44.0

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

Cols are the columns returned in the json

func (*OneClick) JSON added in v1.44.0

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

JSON handles writing the json

func (*OneClick) KV added in v1.44.0

func (oc *OneClick) KV() []map[string]any

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

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

type PostgreSQLConfiguration added in v1.100.0

type PostgreSQLConfiguration struct {
	PostgreSQLConfig do.PostgreSQLConfig
}

func (*PostgreSQLConfiguration) ColMap added in v1.100.0

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

func (*PostgreSQLConfiguration) Cols added in v1.100.0

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

func (*PostgreSQLConfiguration) JSON added in v1.100.0

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

func (*PostgreSQLConfiguration) KV added in v1.100.0

func (dc *PostgreSQLConfiguration) KV() []map[string]any

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

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

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

type RedisConfiguration added in v1.100.0

type RedisConfiguration struct {
	RedisConfig do.RedisConfig
}

func (*RedisConfiguration) ColMap added in v1.100.0

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

func (*RedisConfiguration) Cols added in v1.100.0

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

func (*RedisConfiguration) JSON added in v1.100.0

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

func (*RedisConfiguration) KV added in v1.100.0

func (dc *RedisConfiguration) KV() []map[string]any

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

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

type RegistryAvailableRegions added in v1.71.0

type RegistryAvailableRegions struct {
	Regions []string
}

func (*RegistryAvailableRegions) ColMap added in v1.71.0

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

func (*RegistryAvailableRegions) Cols added in v1.71.0

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

func (*RegistryAvailableRegions) JSON added in v1.71.0

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

func (*RegistryAvailableRegions) KV added in v1.71.0

func (t *RegistryAvailableRegions) KV() []map[string]any

type RegistrySubscriptionTiers added in v1.51.0

type RegistrySubscriptionTiers struct {
	SubscriptionTiers []do.RegistrySubscriptionTier
}

func (*RegistrySubscriptionTiers) ColMap added in v1.51.0

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

func (*RegistrySubscriptionTiers) Cols added in v1.51.0

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

func (*RegistrySubscriptionTiers) JSON added in v1.51.0

func (*RegistrySubscriptionTiers) KV added in v1.51.0

func (t *RegistrySubscriptionTiers) KV() []map[string]any

type Repository added in v1.42.0

type Repository struct {
	Repositories []do.Repository
}

func (*Repository) ColMap added in v1.42.0

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

func (*Repository) Cols added in v1.42.0

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

func (*Repository) JSON added in v1.42.0

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

func (*Repository) KV added in v1.42.0

func (r *Repository) KV() []map[string]any

type RepositoryManifest added in v1.68.0

type RepositoryManifest struct {
	Manifests []do.RepositoryManifest
}

func (*RepositoryManifest) ColMap added in v1.68.0

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

func (*RepositoryManifest) Cols added in v1.68.0

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

func (*RepositoryManifest) JSON added in v1.68.0

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

func (*RepositoryManifest) KV added in v1.68.0

func (r *RepositoryManifest) KV() []map[string]any

type RepositoryTag added in v1.42.0

type RepositoryTag struct {
	Tags []do.RepositoryTag
}

func (*RepositoryTag) ColMap added in v1.42.0

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

func (*RepositoryTag) Cols added in v1.42.0

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

func (*RepositoryTag) JSON added in v1.42.0

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

func (*RepositoryTag) KV added in v1.42.0

func (r *RepositoryTag) KV() []map[string]any

type RepositoryV2 added in v1.68.0

type RepositoryV2 struct {
	Repositories []do.RepositoryV2
}

func (*RepositoryV2) ColMap added in v1.68.0

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

func (*RepositoryV2) Cols added in v1.68.0

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

func (*RepositoryV2) JSON added in v1.68.0

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

func (*RepositoryV2) KV added in v1.68.0

func (r *RepositoryV2) KV() []map[string]any

type ReservedIP added in v1.77.0

type ReservedIP struct {
	ReservedIPs do.ReservedIPs
}

func (*ReservedIP) ColMap added in v1.77.0

func (rip *ReservedIP) ColMap() map[string]string

func (*ReservedIP) Cols added in v1.77.0

func (rip *ReservedIP) Cols() []string

func (*ReservedIP) JSON added in v1.77.0

func (rip *ReservedIP) JSON(out io.Writer) error

func (*ReservedIP) KV added in v1.77.0

func (rip *ReservedIP) KV() []map[string]any

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

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

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

type Triggers added in v1.82.0

type Triggers struct {
	List []do.ServerlessTrigger
}

Triggers is the type of the displayer for triggers list

func (*Triggers) ColMap added in v1.82.0

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

ColMap is the displayer ColMap method specialized for triggers list

func (*Triggers) Cols added in v1.82.0

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

Cols is the displayer Cols method specialized for triggers list

func (*Triggers) JSON added in v1.82.0

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

JSON is the displayer JSON method specialized for triggers list

func (*Triggers) KV added in v1.82.0

func (i *Triggers) KV() []map[string]any

KV is the displayer KV method specialized for triggers list

type UptimeAlert added in v1.100.0

type UptimeAlert struct {
	UptimeAlerts []do.UptimeAlert
}

func (*UptimeAlert) ColMap added in v1.100.0

func (ua *UptimeAlert) ColMap() map[string]string

func (*UptimeAlert) Cols added in v1.100.0

func (uc *UptimeAlert) Cols() []string

func (*UptimeAlert) JSON added in v1.100.0

func (uc *UptimeAlert) JSON(out io.Writer) error

func (*UptimeAlert) KV added in v1.100.0

func (ua *UptimeAlert) KV() []map[string]any

type UptimeCheck added in v1.97.0

type UptimeCheck struct {
	UptimeChecks []do.UptimeCheck
}

func (*UptimeCheck) ColMap added in v1.97.0

func (uc *UptimeCheck) ColMap() map[string]string

func (*UptimeCheck) Cols added in v1.97.0

func (uc *UptimeCheck) Cols() []string

func (*UptimeCheck) JSON added in v1.97.0

func (uc *UptimeCheck) JSON(out io.Writer) error

func (*UptimeCheck) KV added in v1.97.0

func (uc *UptimeCheck) KV() []map[string]any

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

type VPCPeering added in v1.107.0

type VPCPeering struct {
	VPCPeerings do.VPCPeerings
}

func (*VPCPeering) ColMap added in v1.107.0

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

func (*VPCPeering) Cols added in v1.107.0

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

func (*VPCPeering) JSON added in v1.107.0

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

func (*VPCPeering) KV added in v1.107.0

func (v *VPCPeering) KV() []map[string]any

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

Jump to

Keyboard shortcuts

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