output

package
v0.12.17 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VPN  = "🛡"
	Lock = "🔒"
)
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 VolumeEncryptionSecretManifest added in v0.10.23

func VolumeEncryptionSecretManifest(namespace, passphrase string) error

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 AuditTablePrinter added in v0.12.0

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

AuditTablePrinter prints audit traces in a table

func (AuditTablePrinter) Print added in v0.12.0

func (p AuditTablePrinter) Print(data []*models.V1AuditResponse)

Print audit traces as table

func (AuditTablePrinter) Type added in v0.12.0

func (t AuditTablePrinter) Type() string

type ClusterBillingTablePrinter

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

ClusterBillingTablePrinter print bills in a Table

func (*ClusterBillingTablePrinter) Order

Order clusterUsage

func (ClusterBillingTablePrinter) Print

Print a cluster usage as table

func (ClusterBillingTablePrinter) Type added in v0.10.1

func (t ClusterBillingTablePrinter) Type() string

type ContainerBillingTablePrinter

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

ContainerBillingTablePrinter print bills in a Table

func (*ContainerBillingTablePrinter) Order

Order containerUsage

func (ContainerBillingTablePrinter) Print

Print a container usage as table

func (ContainerBillingTablePrinter) Type added in v0.10.1

func (t ContainerBillingTablePrinter) Type() string

type ContextPrinter

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

ContextPrinter print a Context in a Table

func (ContextPrinter) Print

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

Print a model in yaml format

func (ContextPrinter) Type added in v0.10.1

func (t ContextPrinter) Type() string

type HealthTablePrinter added in v0.10.3

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

HealthTablePrinter

func (HealthTablePrinter) Print added in v0.10.3

func (p HealthTablePrinter) Print(health *models.RestHealthResponse)

func (HealthTablePrinter) PrintServices added in v0.10.3

func (p HealthTablePrinter) PrintServices(services map[string]models.RestHealthResult)

func (HealthTablePrinter) Type added in v0.10.3

func (t HealthTablePrinter) Type() string

type IPBillingTablePrinter

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

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

func (IPBillingTablePrinter) Type added in v0.10.1

func (t IPBillingTablePrinter) Type() string

type IPTablePrinter

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

IPTablePrinter prints ips in a table

func (IPTablePrinter) Print

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

Print an ip as table

func (IPTablePrinter) Type added in v0.10.1

func (t IPTablePrinter) Type() string

type MachineBillingTablePrinter added in v0.12.12

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

MachineBillingTablePrinter print bills in a Table

func (*MachineBillingTablePrinter) Order added in v0.12.12

Order machineUsage

func (MachineBillingTablePrinter) Print added in v0.12.12

Print a machine usage as table

func (MachineBillingTablePrinter) Type added in v0.12.12

func (t MachineBillingTablePrinter) Type() string

type MachineTablePrinter

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

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

func (MachineTablePrinter) Type added in v0.10.1

func (t MachineTablePrinter) Type() string

type NetworkTrafficBillingTablePrinter

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

NetworkTrafficBillingTablePrinter print bills in a Table

func (*NetworkTrafficBillingTablePrinter) Order

Order volumeUsage

func (NetworkTrafficBillingTablePrinter) Print

Print a volume usage as table

func (NetworkTrafficBillingTablePrinter) Type added in v0.10.1

func (t NetworkTrafficBillingTablePrinter) Type() string

type PostgresBackupEntryTablePrinter added in v0.9.5

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

func (PostgresBackupEntryTablePrinter) Order added in v0.9.5

Order postgres backups partitions

func (PostgresBackupEntryTablePrinter) Print added in v0.9.5

func (PostgresBackupEntryTablePrinter) Type added in v0.10.1

func (t PostgresBackupEntryTablePrinter) Type() string

type PostgresBackupsTablePrinter added in v0.9.5

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

func (PostgresBackupsTablePrinter) Print added in v0.9.5

func (PostgresBackupsTablePrinter) Type added in v0.10.1

func (t PostgresBackupsTablePrinter) Type() string

type PostgresBillingTablePrinter added in v0.9.7

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

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

func (PostgresBillingTablePrinter) Type added in v0.10.1

func (t PostgresBillingTablePrinter) Type() string

type PostgresPartitionsTablePrinter added in v0.9.5

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

func (PostgresPartitionsTablePrinter) Print added in v0.9.5

func (PostgresPartitionsTablePrinter) Type added in v0.10.1

func (t PostgresPartitionsTablePrinter) Type() string

type PostgresTablePrinter added in v0.9.5

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

PostgresTablePrinter prints postgres databases in a table

func (PostgresTablePrinter) Print added in v0.9.5

func (PostgresTablePrinter) Type added in v0.10.1

func (t PostgresTablePrinter) Type() string

type PostgresVersionsTablePrinter added in v0.9.5

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

func (PostgresVersionsTablePrinter) Print added in v0.9.5

func (PostgresVersionsTablePrinter) Type added in v0.10.1

func (t PostgresVersionsTablePrinter) Type() string

type Printer

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

Printer main Interface for implementations which spits out to specified Writer

func New added in v0.10.1

func New() Printer

New returns a suitable stdout printer for the given format

type ProductOptionBillingTablePrinter added in v0.12.12

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

ProductOptionBillingTablePrinter print bills in a Table

func (*ProductOptionBillingTablePrinter) Order added in v0.12.12

Order productOptionUsage

func (ProductOptionBillingTablePrinter) Print added in v0.12.12

Print a product option usage as table

func (ProductOptionBillingTablePrinter) Type added in v0.12.12

func (t ProductOptionBillingTablePrinter) Type() string

type ProjectBillingTablePrinter added in v0.10.17

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

ProjectBillingTablePrinter print bills in a Table

func (ProjectBillingTablePrinter) Order added in v0.10.17

Order cluster

func (ProjectBillingTablePrinter) Print added in v0.10.17

Print a cluster usage as table

func (ProjectBillingTablePrinter) Type added in v0.10.17

func (t ProjectBillingTablePrinter) Type() string

type ProjectTableDetailPrinter added in v0.10.19

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

ProjectTableDetailPrinter print a Project in a Table

func (ProjectTableDetailPrinter) Print added in v0.10.19

Print a Project as table

func (ProjectTableDetailPrinter) Type added in v0.10.19

func (t ProjectTableDetailPrinter) Type() string

type ProjectTablePrinter

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

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

func (ProjectTablePrinter) Type added in v0.10.1

func (t ProjectTablePrinter) Type() string

type S3BillingTablePrinter

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

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

func (S3BillingTablePrinter) Type added in v0.10.1

func (t S3BillingTablePrinter) Type() string

type S3PartitionTablePrinter

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

func (S3PartitionTablePrinter) Order

Order s3 partitions

func (S3PartitionTablePrinter) Print

Print a S3 partitions as table

func (S3PartitionTablePrinter) Type added in v0.10.1

func (t S3PartitionTablePrinter) Type() string

type S3TablePrinter

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

S3TablePrinter print S3 storage in a Table

func (S3TablePrinter) Print

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

Print a S3 storage as table

func (S3TablePrinter) Type added in v0.10.1

func (t S3TablePrinter) Type() string

type ShootConditionsTablePrinter

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

ShootConditionsTablePrinter print the Conditions of a Shoot Cluster in a Table

func (ShootConditionsTablePrinter) Print

func (ShootConditionsTablePrinter) Type added in v0.10.1

func (t ShootConditionsTablePrinter) Type() string

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 {
	// contains filtered or unexported fields
}

func (ShootIssuesTablePrinter) Order added in v0.8.5

Order cluster

func (ShootIssuesTablePrinter) Print added in v0.8.5

func (ShootIssuesTablePrinter) Type added in v0.10.1

func (t ShootIssuesTablePrinter) Type() string

type ShootLastErrorsTablePrinter added in v0.8.5

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

func (ShootLastErrorsTablePrinter) Print added in v0.8.5

func (ShootLastErrorsTablePrinter) Type added in v0.10.1

func (t ShootLastErrorsTablePrinter) Type() string

type ShootLastOperationTablePrinter added in v0.8.5

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

func (ShootLastOperationTablePrinter) Print added in v0.8.5

func (ShootLastOperationTablePrinter) Type added in v0.10.1

func (t ShootLastOperationTablePrinter) Type() string

type ShootTablePrinter

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

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

func (ShootTablePrinter) Type added in v0.10.1

func (t ShootTablePrinter) Type() string

type SnapshotTablePrinter added in v0.10.23

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

func (SnapshotTablePrinter) Order added in v0.10.23

Order cluster

func (SnapshotTablePrinter) Print added in v0.10.23

Print an snapshot as table

func (SnapshotTablePrinter) Type added in v0.10.23

func (t SnapshotTablePrinter) Type() string

type TenantTablePrinter

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

TenantTablePrinter print a Project in a Table

func (TenantTablePrinter) Print

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

Print a Project as table

func (TenantTablePrinter) Type added in v0.10.1

func (t TenantTablePrinter) Type() string

type VolumeBillingTablePrinter

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

VolumeBillingTablePrinter print bills in a Table

func (*VolumeBillingTablePrinter) Order

Order volumeUsage

func (VolumeBillingTablePrinter) Print

Print a volume usage as table

func (VolumeBillingTablePrinter) Type added in v0.10.1

func (t VolumeBillingTablePrinter) Type() string

type VolumeClusterInfoTablePrinter added in v0.9.6

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

func (VolumeClusterInfoTablePrinter) Print added in v0.9.6

func (VolumeClusterInfoTablePrinter) Type added in v0.10.1

func (t VolumeClusterInfoTablePrinter) Type() string

type VolumeTablePrinter added in v0.9.0

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

VolumeTablePrinter prints volumes in a table

func (VolumeTablePrinter) Order added in v0.10.15

func (s VolumeTablePrinter) Order(data []*models.V1VolumeResponse)

Order cluster

func (VolumeTablePrinter) Print added in v0.9.0

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

Print an volume as table

func (VolumeTablePrinter) Type added in v0.10.1

func (t VolumeTablePrinter) Type() string

Jump to

Keyboard shortcuts

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