output

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageExpirationDaysDefault      = 14
	KuberentesExpirationDaysDefault = 14
)

Variables

This section is empty.

Functions

func ConnectedHosts added in v0.9.0

func ConnectedHosts(vol *models.V1VolumeResponse) []string

ConnectedHosts returns the worker nodes without internal prefixes and suffixes

func StrDeref added in v0.9.12

func StrDeref(s string) *string

func VolumeManifest added in v0.9.0

func VolumeManifest(v models.V1VolumeResponse, name, namespace string) error

VolumeManifest create a manifest for static PV like so

--- apiVersion: v1 kind: PersistentVolume metadata:

annotations:
  pv.kubernetes.io/provisioned-by: csi.lightbitslabs.com
name: pvc-7e3b4b43-0061-46f0-a125-e0c1a0b2a4fb

spec:

accessModes:
- ReadWriteOnce
capacity:
  storage: 20Gi
claimRef:
  apiVersion: v1
  kind: PersistentVolumeClaim
  name: example-mt-pvc-2
  namespace: default
  resourceVersion: "13088"
  uid: 7e3b4b43-0061-46f0-a125-e0c1a0b2a4fb
csi:
  controllerExpandSecretRef:
    name: lb-csi-creds
    namespace: kube-system
  controllerPublishSecretRef:
    name: lb-csi-creds
    namespace: kube-system
  driver: csi.lightbitslabs.com
  fsType: ext4
  nodePublishSecretRef:
    name: lb-csi-creds
    namespace: kube-system
  nodeStageSecretRef:
    name: lb-csi-creds
    namespace: kube-system
  volumeAttributes:
    storage.kubernetes.io/csiProvisionerIdentity: 1608281061542-8081-csi.lightbitslabs.com
  volumeHandle: mgmt:10.131.44.1:443,10.131.44.2:443,10.131.44.3:443|nguid:d798ec5a-84b3-4909-9938-785ebd3bbadb|proj:24235d11-deb9-46e3-9101-f906c78b10b6|scheme:grpcs
persistentVolumeReclaimPolicy: Delete
storageClassName: partition-silver

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)

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

func (JSONPrinter) Type added in v0.9.0

func (j JSONPrinter) Type() string

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 PostgresBackupEntryTablePrinter added in v0.9.5

type PostgresBackupEntryTablePrinter struct {
	TablePrinter
}

func (PostgresBackupEntryTablePrinter) Order added in v0.9.5

Order postgres backups partitions

func (PostgresBackupEntryTablePrinter) Print added in v0.9.5

type PostgresBackupsTablePrinter added in v0.9.5

type PostgresBackupsTablePrinter struct {
	TablePrinter
}

func (PostgresBackupsTablePrinter) Print added in v0.9.5

type PostgresBillingTablePrinter added in v0.9.7

type PostgresBillingTablePrinter struct {
	TablePrinter
}

PostgresBillingTablePrinter print bills in a Table

func (*PostgresBillingTablePrinter) Order added in v0.9.7

Order ipUsage

func (PostgresBillingTablePrinter) Print added in v0.9.7

Print a postgres usage as table

type PostgresPartitionsTablePrinter added in v0.9.5

type PostgresPartitionsTablePrinter struct {
	TablePrinter
}

func (PostgresPartitionsTablePrinter) Print added in v0.9.5

type PostgresTablePrinter added in v0.9.5

type PostgresTablePrinter struct {
	TablePrinter
}

PostgresTablePrinter prints postgres databases in a table

func (PostgresTablePrinter) Print added in v0.9.5

type PostgresVersionsTablePrinter added in v0.9.5

type PostgresVersionsTablePrinter struct {
	TablePrinter
}

func (PostgresVersionsTablePrinter) Print added in v0.9.5

type Printer

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

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 ShootIssuesResponse added in v0.8.5

type ShootIssuesResponse *models.V1ClusterResponse

type ShootIssuesResponses added in v0.8.5

type ShootIssuesResponses []*models.V1ClusterResponse

type ShootIssuesTablePrinter added in v0.8.5

type ShootIssuesTablePrinter struct {
	TablePrinter
}

func (ShootIssuesTablePrinter) Order added in v0.8.5

Order cluster

func (ShootIssuesTablePrinter) Print added in v0.8.5

type ShootLastErrorsTablePrinter added in v0.8.5

type ShootLastErrorsTablePrinter struct {
	TablePrinter
}

func (ShootLastErrorsTablePrinter) Print added in v0.8.5

type ShootLastOperationTablePrinter added in v0.8.5

type ShootLastOperationTablePrinter struct {
	TablePrinter
}

func (ShootLastOperationTablePrinter) Print added in v0.8.5

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

func (TablePrinter) Type added in v0.9.0

func (t TablePrinter) Type() string

type TenantTablePrinter

type TenantTablePrinter struct {
	TablePrinter
}

TenantTablePrinter print a Project in a Table

func (TenantTablePrinter) Print

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

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 VolumeClusterInfoTablePrinter added in v0.9.6

type VolumeClusterInfoTablePrinter struct {
	TablePrinter
}

func (VolumeClusterInfoTablePrinter) Print added in v0.9.6

type VolumeTablePrinter added in v0.9.0

type VolumeTablePrinter struct {
	TablePrinter
}

VolumeTablePrinter prints volumes in a table

func (VolumeTablePrinter) Print added in v0.9.0

func (p VolumeTablePrinter) Print(data []*models.V1VolumeResponse)

Print an volume 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

func (YAMLPrinter) Type added in v0.9.0

func (y YAMLPrinter) Type() string

Jump to

Keyboard shortcuts

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