Documentation ¶
Index ¶
- func HTTPError(err *models.HttperrorsHTTPErrorResponse) error
- func UnconventionalError(err error) error
- type ClusterBillingTablePrinter
- type ContainerBillingTablePrinter
- type ContextPrinter
- type IPBillingTablePrinter
- type IPTablePrinter
- type JSONPrinter
- type MachineTablePrinter
- type NetworkTrafficBillingTablePrinter
- type Printer
- type ProjectTablePrinter
- type S3BillingTablePrinter
- type S3PartitionTablePrinter
- type S3TablePrinter
- type ShootConditionsTablePrinter
- type ShootTablePrinter
- type TablePrinter
- type TenantTablePrinter
- type VolumeBillingTablePrinter
- type YAMLPrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPError ¶
func HTTPError(err *models.HttperrorsHTTPErrorResponse) error
HTTPError prints an HTTP error
func UnconventionalError ¶
UnconventionalError prints an unconventional error
Types ¶
type ClusterBillingTablePrinter ¶
type ClusterBillingTablePrinter struct {
TablePrinter
}
ClusterBillingTablePrinter print bills in a Table
func (*ClusterBillingTablePrinter) Order ¶
func (s *ClusterBillingTablePrinter) Order(data []*models.V1ClusterUsage)
Order clusterUsage
func (ClusterBillingTablePrinter) Print ¶
func (s ClusterBillingTablePrinter) Print(data *models.V1ClusterUsageResponse)
Print a cluster usage as table
type ContainerBillingTablePrinter ¶
type ContainerBillingTablePrinter struct {
TablePrinter
}
ContainerBillingTablePrinter print bills in a Table
func (*ContainerBillingTablePrinter) Order ¶
func (s *ContainerBillingTablePrinter) Order(data []*models.V1ContainerUsage)
Order containerUsage
func (ContainerBillingTablePrinter) Print ¶
func (s ContainerBillingTablePrinter) Print(data *models.V1ContainerUsageResponse)
Print a container usage as table
type ContextPrinter ¶
type ContextPrinter struct {
TablePrinter
}
ContextPrinter print a Context in a Table
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 ¶
func (s IPBillingTablePrinter) Print(data *models.V1IPUsageResponse)
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 ¶
func (m MachineTablePrinter) Order(data []*models.ModelsV1MachineResponse)
Order machines
func (MachineTablePrinter) Print ¶
func (m MachineTablePrinter) Print(data []*models.ModelsV1MachineResponse)
Print a list of Machines in a table
type NetworkTrafficBillingTablePrinter ¶
type NetworkTrafficBillingTablePrinter struct {
TablePrinter
}
NetworkTrafficBillingTablePrinter print bills in a Table
func (*NetworkTrafficBillingTablePrinter) Order ¶
func (s *NetworkTrafficBillingTablePrinter) Order(data []*models.V1NetworkUsage)
Order volumeUsage
func (NetworkTrafficBillingTablePrinter) Print ¶
func (s NetworkTrafficBillingTablePrinter) Print(data *models.V1NetworkUsageResponse)
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
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 ¶
func (s S3BillingTablePrinter) Print(data *models.V1S3UsageResponse)
Print a s3 usage as table
type S3PartitionTablePrinter ¶
type S3PartitionTablePrinter struct {
TablePrinter
}
func (S3PartitionTablePrinter) Order ¶
func (m S3PartitionTablePrinter) Order(data []*models.V1S3PartitionResponse)
Order s3 partitions
func (S3PartitionTablePrinter) Print ¶
func (p S3PartitionTablePrinter) Print(data []*models.V1S3PartitionResponse)
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 ¶
func (s ShootConditionsTablePrinter) Print(data []*models.V1beta1Condition)
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 ¶
func (s *VolumeBillingTablePrinter) Order(data []*models.V1VolumeUsage)
Order volumeUsage
func (VolumeBillingTablePrinter) Print ¶
func (s VolumeBillingTablePrinter) Print(data *models.V1VolumeUsageResponse)
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