displayers

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayJSON added in v0.0.20

func DisplayJSON(w io.Writer, data interface{}) error

func DisplayJSONPath added in v0.0.20

func DisplayJSONPath(w io.Writer, template string, data interface{}) error

func DisplayPP added in v0.0.20

func DisplayPP(w io.Writer, data interface{}) error

func DisplayTable added in v0.0.20

func DisplayTable(w io.Writer, data [][]string, header []string) error

func DisplayText added in v0.0.23

func DisplayText(w io.Writer, data []string) error

func DisplayYAML added in v0.0.20

func DisplayYAML(w io.Writer, data interface{}) error

func JSONToYAML added in v0.0.18

func JSONToYAML(j []byte) ([]byte, error)

func RenderTime added in v0.1.14

func RenderTime(t *time.Time) string

Types

type AvailabilityZones

type AvailabilityZones struct {
	schema.AvailabilityZoneListIntent
}

AvailabilityZones wraps a nutanix AvailabilityZoneListIntent.

func (AvailabilityZones) JSON

func (o AvailabilityZones) JSON(w io.Writer) error

func (AvailabilityZones) JSONPath

func (o AvailabilityZones) JSONPath(w io.Writer, template string) error

func (AvailabilityZones) PP

func (o AvailabilityZones) PP(w io.Writer) error

func (AvailabilityZones) TableData

func (o AvailabilityZones) TableData(w io.Writer) error

func (AvailabilityZones) Text

func (o AvailabilityZones) Text(w io.Writer) error

func (AvailabilityZones) YAML

func (o AvailabilityZones) YAML(w io.Writer) error

type Categories

type Categories struct {
	schema.CategoryKeyList
}

Categories wraps a nutanix CategoryKeyList.

func (Categories) JSON

func (o Categories) JSON(w io.Writer) error

func (Categories) JSONPath

func (o Categories) JSONPath(w io.Writer, template string) error

func (Categories) PP

func (o Categories) PP(w io.Writer) error

func (Categories) TableData

func (o Categories) TableData(w io.Writer) error

func (Categories) Text

func (o Categories) Text(w io.Writer) error

func (Categories) YAML

func (o Categories) YAML(w io.Writer) error

type Clusters

type Clusters struct {
	schema.ClusterListIntent
}

Clusters wraps a nutanix ImageListIntent.

func (Clusters) JSON

func (o Clusters) JSON(w io.Writer) error

func (Clusters) JSONPath

func (o Clusters) JSONPath(w io.Writer, template string) error

func (Clusters) PP

func (o Clusters) PP(w io.Writer) error

func (Clusters) TableData

func (o Clusters) TableData(w io.Writer) error

func (Clusters) Text

func (o Clusters) Text(w io.Writer) error

func (Clusters) YAML

func (o Clusters) YAML(w io.Writer) error

type Displayable

type Displayable interface {
	JSON(w io.Writer) error
	YAML(w io.Writer) error
	PP(w io.Writer) error
	TableData(w io.Writer) error
	JSONPath(w io.Writer, template string) error
	Text(w io.Writer) error
}

type FloatingIps added in v0.1.6

type FloatingIps struct {
	schema.FloatingIPListIntent
}

Vpcs wraps a nutanix VpcListIntent.

func (FloatingIps) JSON added in v0.1.6

func (o FloatingIps) JSON(w io.Writer) error

func (FloatingIps) JSONPath added in v0.1.6

func (o FloatingIps) JSONPath(w io.Writer, template string) error

func (FloatingIps) PP added in v0.1.6

func (o FloatingIps) PP(w io.Writer) error

func (FloatingIps) TableData added in v0.1.6

func (o FloatingIps) TableData(w io.Writer) error

func (FloatingIps) Text added in v0.1.6

func (o FloatingIps) Text(w io.Writer) error

func (FloatingIps) YAML added in v0.1.6

func (o FloatingIps) YAML(w io.Writer) error

type Hosts added in v0.0.24

type Hosts struct {
	schema.HostListIntent
}

Hosts wraps a nutanix HostListItnent.

func (Hosts) JSON added in v0.0.24

func (o Hosts) JSON(w io.Writer) error

func (Hosts) JSONPath added in v0.0.24

func (o Hosts) JSONPath(w io.Writer, template string) error

func (Hosts) PP added in v0.0.24

func (o Hosts) PP(w io.Writer) error

func (Hosts) TableData added in v0.0.24

func (o Hosts) TableData(w io.Writer) error

func (Hosts) Text added in v0.0.24

func (o Hosts) Text(w io.Writer) error

func (Hosts) YAML added in v0.0.24

func (o Hosts) YAML(w io.Writer) error

type Images

type Images struct {
	schema.ImageListIntent
}

Images wraps a nutanix ImageListIntent.

func (Images) JSON

func (o Images) JSON(w io.Writer) error

func (Images) JSONPath

func (o Images) JSONPath(w io.Writer, template string) error

func (Images) PP

func (o Images) PP(w io.Writer) error

func (Images) TableData

func (o Images) TableData(w io.Writer) error

func (Images) Text

func (o Images) Text(w io.Writer) error

func (Images) YAML

func (o Images) YAML(w io.Writer) error

type Projects

type Projects struct {
	schema.ProjectListIntent
}

Projects wraps a nutanix ProjectListItnent.

func (Projects) JSON

func (o Projects) JSON(w io.Writer) error

func (Projects) JSONPath

func (o Projects) JSONPath(w io.Writer, template string) error

func (Projects) PP

func (o Projects) PP(w io.Writer) error

func (Projects) TableData

func (o Projects) TableData(w io.Writer) error

func (Projects) Text

func (o Projects) Text(w io.Writer) error

func (Projects) YAML

func (o Projects) YAML(w io.Writer) error

type RoutingPolicies added in v0.1.6

type RoutingPolicies struct {
	schema.RoutingPolicyListIntent
}

RoutingPolicies wraps a nutanix RoutingPolicyListIntent.

func (RoutingPolicies) JSON added in v0.1.6

func (o RoutingPolicies) JSON(w io.Writer) error

func (RoutingPolicies) JSONPath added in v0.1.6

func (o RoutingPolicies) JSONPath(w io.Writer, template string) error

func (RoutingPolicies) PP added in v0.1.6

func (o RoutingPolicies) PP(w io.Writer) error

func (RoutingPolicies) TableData added in v0.1.6

func (o RoutingPolicies) TableData(w io.Writer) error

func (RoutingPolicies) Text added in v0.1.6

func (o RoutingPolicies) Text(w io.Writer) error

func (RoutingPolicies) YAML added in v0.1.6

func (o RoutingPolicies) YAML(w io.Writer) error

type Subnets

type Subnets struct {
	schema.SubnetListIntent
}

Subnets wraps a nutanix SubnetListIntent.

func (Subnets) JSON

func (o Subnets) JSON(w io.Writer) error

func (Subnets) JSONPath

func (o Subnets) JSONPath(w io.Writer, template string) error

func (Subnets) PP

func (o Subnets) PP(w io.Writer) error

func (Subnets) TableData

func (o Subnets) TableData(w io.Writer) error

func (Subnets) Text

func (o Subnets) Text(w io.Writer) error

func (Subnets) YAML

func (o Subnets) YAML(w io.Writer) error

type Tasks

type Tasks struct {
	schema.TaskListIntent
}

Tasks wraps a nutanix TaskListIntent.

func (Tasks) JSON

func (o Tasks) JSON(w io.Writer) error

func (Tasks) JSONPath

func (o Tasks) JSONPath(w io.Writer, template string) error

func (Tasks) PP

func (o Tasks) PP(w io.Writer) error

func (Tasks) TableData

func (o Tasks) TableData(w io.Writer) error

func (Tasks) Text

func (o Tasks) Text(w io.Writer) error

func (Tasks) YAML

func (o Tasks) YAML(w io.Writer) error

type VMRecoveryPoints

type VMRecoveryPoints struct {
	schema.VMRecoveryPointListIntent
}

VMRecoveryPoints wraps a nutanix VMRecoveryPointListIntent.

func (VMRecoveryPoints) JSON

func (o VMRecoveryPoints) JSON(w io.Writer) error

func (VMRecoveryPoints) JSONPath

func (o VMRecoveryPoints) JSONPath(w io.Writer, template string) error

func (VMRecoveryPoints) PP

func (o VMRecoveryPoints) PP(w io.Writer) error

func (VMRecoveryPoints) TableData

func (o VMRecoveryPoints) TableData(w io.Writer) error

func (VMRecoveryPoints) Text

func (o VMRecoveryPoints) Text(w io.Writer) error

func (VMRecoveryPoints) YAML

func (o VMRecoveryPoints) YAML(w io.Writer) error

type VMSnapshots

type VMSnapshots struct {
	v2.SnapshotList
}

VMSnapshots wraps a nutanix SnapshotList.

func (VMSnapshots) JSON

func (o VMSnapshots) JSON(w io.Writer) error

func (VMSnapshots) JSONPath

func (o VMSnapshots) JSONPath(w io.Writer, template string) error

func (VMSnapshots) PP

func (o VMSnapshots) PP(w io.Writer) error

func (VMSnapshots) TableData

func (o VMSnapshots) TableData(w io.Writer) error

func (VMSnapshots) Text

func (o VMSnapshots) Text(w io.Writer) error

func (VMSnapshots) YAML

func (o VMSnapshots) YAML(w io.Writer) error

type VMs

type VMs struct {
	schema.VMListIntent
}

Clusters wraps a nutanix ImageListIntent.

func (VMs) JSON

func (o VMs) JSON(w io.Writer) error

func (VMs) JSONPath

func (o VMs) JSONPath(w io.Writer, template string) error

func (VMs) PP

func (o VMs) PP(w io.Writer) error

func (VMs) TableData

func (o VMs) TableData(w io.Writer) error

func (VMs) Text

func (o VMs) Text(w io.Writer) error

func (VMs) YAML

func (o VMs) YAML(w io.Writer) error

type VirtualDisks

type VirtualDisks struct {
	v2.VirtualDiskList
}

VirtualDisks wraps a nutanix VirtualDiskList.

func (VirtualDisks) JSON

func (o VirtualDisks) JSON(w io.Writer) error

func (VirtualDisks) JSONPath

func (o VirtualDisks) JSONPath(w io.Writer, template string) error

func (VirtualDisks) PP

func (o VirtualDisks) PP(w io.Writer) error

func (VirtualDisks) TableData

func (o VirtualDisks) TableData(w io.Writer) error

func (VirtualDisks) Text

func (o VirtualDisks) Text(w io.Writer) error

func (VirtualDisks) YAML

func (o VirtualDisks) YAML(w io.Writer) error

type Vpcs added in v0.1.6

type Vpcs struct {
	schema.VpcListIntent
}

Vpcs wraps a nutanix VpcListIntent.

func (Vpcs) JSON added in v0.1.6

func (o Vpcs) JSON(w io.Writer) error

func (Vpcs) JSONPath added in v0.1.6

func (o Vpcs) JSONPath(w io.Writer, template string) error

func (Vpcs) PP added in v0.1.6

func (o Vpcs) PP(w io.Writer) error

func (Vpcs) TableData added in v0.1.6

func (o Vpcs) TableData(w io.Writer) error

func (Vpcs) Text added in v0.1.6

func (o Vpcs) Text(w io.Writer) error

func (Vpcs) YAML added in v0.1.6

func (o Vpcs) YAML(w io.Writer) error

Jump to

Keyboard shortcuts

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