output

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPError

HTTPError prints an HTTP error

func UnconventionalError

func UnconventionalError(err error) error

UnconventionalError prints an unconventional error

Types

type ClusterBillingTablePrinter

type ClusterBillingTablePrinter struct {
	TablePrinter
}

ClusterBillingTablePrinter print bills in a Table

func (*ClusterBillingTablePrinter) Order

Order clusterUsage

func (ClusterBillingTablePrinter) Print

Print a cluster usage as table

type ContainerBillingTablePrinter

type ContainerBillingTablePrinter struct {
	TablePrinter
}

ContainerBillingTablePrinter print bills in a Table

func (*ContainerBillingTablePrinter) Order

Order containerUsage

func (ContainerBillingTablePrinter) Print

Print a container usage as table

type ContextPrinter

type ContextPrinter struct {
	TablePrinter
}

ContextPrinter print a Context in a Table

func (ContextPrinter) Print

func (p ContextPrinter) Print(data *api.Contexts) error

Print a model in yaml format

type IPBillingTablePrinter

type IPBillingTablePrinter struct {
	TablePrinter
}

IPBillingTablePrinter print bills in a Table

func (*IPBillingTablePrinter) Order

func (s *IPBillingTablePrinter) Order(data []*models.V1IPUsage)

Order ipUsage

func (IPBillingTablePrinter) Print

Print a cluster usage as table

type IPTablePrinter

type IPTablePrinter struct {
	TablePrinter
}

IPTablePrinter prints ips in a table

func (IPTablePrinter) Print

func (p IPTablePrinter) Print(data []*models.ModelsV1IPResponse)

Print an ip as table

type JSONPrinter

type JSONPrinter struct{}

JSONPrinter returns the model in json format

func (JSONPrinter) Print

func (j JSONPrinter) Print(data interface{}) error

Print a model in json format

type MachineTablePrinter

type MachineTablePrinter struct {
	TablePrinter
}

MachineTablePrinter print machines of Shoot Cluster in a Table

func (MachineTablePrinter) Order

Order machines

func (MachineTablePrinter) Print

Print a list of Machines in a table

type NetworkTrafficBillingTablePrinter

type NetworkTrafficBillingTablePrinter struct {
	TablePrinter
}

NetworkTrafficBillingTablePrinter print bills in a Table

func (*NetworkTrafficBillingTablePrinter) Order

Order volumeUsage

func (NetworkTrafficBillingTablePrinter) Print

Print a volume usage as table

type Printer

type Printer interface {
	Print(data interface{}) error
}

Printer main Interface for implementations which spits out to stdout

func NewPrinter

func NewPrinter(format, order, tpl string, noHeaders bool) (Printer, error)

NewPrinter returns a suitable stdout printer for the given format

type ProjectTablePrinter

type ProjectTablePrinter struct {
	TablePrinter
}

ProjectTablePrinter print a Project in a Table

func (ProjectTablePrinter) Order

func (s ProjectTablePrinter) Order(data []*models.V1ProjectResponse)

Order Project

func (ProjectTablePrinter) Print

func (p ProjectTablePrinter) Print(data []*models.V1ProjectResponse)

Print a Project as table

type S3BillingTablePrinter

type S3BillingTablePrinter struct {
	TablePrinter
}

S3BillingTablePrinter print bills in a Table

func (*S3BillingTablePrinter) Order

func (s *S3BillingTablePrinter) Order(data []*models.V1S3Usage)

Order s3Usage

func (S3BillingTablePrinter) Print

Print a s3 usage as table

type S3PartitionTablePrinter

type S3PartitionTablePrinter struct {
	TablePrinter
}

func (S3PartitionTablePrinter) Order

Order s3 partitions

func (S3PartitionTablePrinter) Print

Print a S3 partitions as table

type S3TablePrinter

type S3TablePrinter struct {
	TablePrinter
}

S3TablePrinter print S3 storage in a Table

func (S3TablePrinter) Print

func (p S3TablePrinter) Print(data []*models.V1S3Response)

Print a S3 storage as table

type ShootConditionsTablePrinter

type ShootConditionsTablePrinter struct {
	TablePrinter
}

ShootConditionsTablePrinter print the Conditions of a Shoot Cluster in a Table

func (ShootConditionsTablePrinter) Print

type ShootTablePrinter

type ShootTablePrinter struct {
	TablePrinter
}

ShootTablePrinter print a Shoot Cluster in a Table

func (ShootTablePrinter) Order

func (s ShootTablePrinter) Order(data []*models.V1ClusterResponse)

Order cluster

func (ShootTablePrinter) Print

func (s ShootTablePrinter) Print(data []*models.V1ClusterResponse)

Print a Shoot as table

type TablePrinter

type TablePrinter struct {
	// contains filtered or unexported fields
}

func (TablePrinter) Print

func (t TablePrinter) Print(data interface{}) error

Print a model in a human readable table

type TenantTablePrinter

type TenantTablePrinter struct {
	TablePrinter
}

TenantTablePrinter print a Project in a Table

func (TenantTablePrinter) Print

func (p TenantTablePrinter) Print(tenants []*models.V1Tenant)

Print a Project as table

type VolumeBillingTablePrinter

type VolumeBillingTablePrinter struct {
	TablePrinter
}

VolumeBillingTablePrinter print bills in a Table

func (*VolumeBillingTablePrinter) Order

Order volumeUsage

func (VolumeBillingTablePrinter) Print

Print a volume usage as table

type YAMLPrinter

type YAMLPrinter struct{}

YAMLPrinter returns the model in yaml format

func (YAMLPrinter) Print

func (y YAMLPrinter) Print(data interface{}) error

Print a model in yaml format

Jump to

Keyboard shortcuts

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