Documentation
¶
Index ¶
- Constants
- func ConnectedHosts(vol *models.V1VolumeResponse) []string
- func StrDeref(s string) *string
- func VolumeManifest(v models.V1VolumeResponse, name, namespace string) error
- type ClusterBillingTablePrinter
- type ContainerBillingTablePrinter
- type ContextPrinter
- type HealthTablePrinter
- type IPBillingTablePrinter
- type IPTablePrinter
- type MachineTablePrinter
- type NetworkTrafficBillingTablePrinter
- type PostgresBackupEntryTablePrinter
- type PostgresBackupsTablePrinter
- type PostgresBillingTablePrinter
- type PostgresPartitionsTablePrinter
- type PostgresTablePrinter
- type PostgresVersionsTablePrinter
- type Printer
- type ProjectTablePrinter
- type S3BillingTablePrinter
- type S3PartitionTablePrinter
- type S3TablePrinter
- type ShootConditionsTablePrinter
- type ShootIssuesResponse
- type ShootIssuesResponses
- type ShootIssuesTablePrinter
- type ShootLastErrorsTablePrinter
- type ShootLastOperationTablePrinter
- type ShootTablePrinter
- type TenantTablePrinter
- type VolumeBillingTablePrinter
- type VolumeClusterInfoTablePrinter
- type VolumeTablePrinter
Constants ¶
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 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 {
// contains filtered or unexported fields
}
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 {
// contains filtered or unexported fields
}
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 {
// 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
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)
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 ¶
func (s IPBillingTablePrinter) Print(data *models.V1IPUsageResponse)
Print a cluster usage as table
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
type MachineTablePrinter ¶
type MachineTablePrinter struct {
// contains filtered or unexported fields
}
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 {
// contains filtered or unexported fields
}
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 PostgresBackupEntryTablePrinter ¶ added in v0.9.5
type PostgresBackupEntryTablePrinter struct {
// contains filtered or unexported fields
}
func (PostgresBackupEntryTablePrinter) Order ¶ added in v0.9.5
func (p PostgresBackupEntryTablePrinter) Order(data []*models.V1PostgresBackupEntry)
Order postgres backups partitions
func (PostgresBackupEntryTablePrinter) Print ¶ added in v0.9.5
func (p PostgresBackupEntryTablePrinter) Print(data []*models.V1PostgresBackupEntry)
type PostgresBackupsTablePrinter ¶ added in v0.9.5
type PostgresBackupsTablePrinter struct {
// contains filtered or unexported fields
}
func (PostgresBackupsTablePrinter) Print ¶ added in v0.9.5
func (p PostgresBackupsTablePrinter) Print(data []*models.V1PostgresBackupConfigResponse)
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
func (s *PostgresBillingTablePrinter) Order(data []*models.V1PostgresUsage)
Order ipUsage
func (PostgresBillingTablePrinter) Print ¶ added in v0.9.7
func (s PostgresBillingTablePrinter) Print(data *models.V1PostgresUsageResponse)
Print a postgres usage as table
type PostgresPartitionsTablePrinter ¶ added in v0.9.5
type PostgresPartitionsTablePrinter struct {
// contains filtered or unexported fields
}
func (PostgresPartitionsTablePrinter) Print ¶ added in v0.9.5
func (p PostgresPartitionsTablePrinter) Print(data models.V1PostgresPartitionsResponse)
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 (p PostgresTablePrinter) Print(data []*models.V1PostgresResponse)
type PostgresVersionsTablePrinter ¶ added in v0.9.5
type PostgresVersionsTablePrinter struct {
// contains filtered or unexported fields
}
func (PostgresVersionsTablePrinter) Print ¶ added in v0.9.5
func (p PostgresVersionsTablePrinter) Print(data []*models.V1PostgresVersion)
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
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 ¶
func (s S3BillingTablePrinter) Print(data *models.V1S3UsageResponse)
Print a s3 usage as table
type S3PartitionTablePrinter ¶
type S3PartitionTablePrinter struct {
// contains filtered or unexported fields
}
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 {
// 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
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 (s ShootConditionsTablePrinter) Print(data []*models.V1beta1Condition)
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
func (s ShootIssuesTablePrinter) Order(data []*models.V1ClusterResponse)
Order cluster
func (ShootIssuesTablePrinter) Print ¶ added in v0.8.5
func (s ShootIssuesTablePrinter) Print(data []*models.V1ClusterResponse)
type ShootLastErrorsTablePrinter ¶ added in v0.8.5
type ShootLastErrorsTablePrinter struct {
// contains filtered or unexported fields
}
func (ShootLastErrorsTablePrinter) Print ¶ added in v0.8.5
func (s ShootLastErrorsTablePrinter) Print(data []*models.V1beta1LastError)
type ShootLastOperationTablePrinter ¶ added in v0.8.5
type ShootLastOperationTablePrinter struct {
// contains filtered or unexported fields
}
func (ShootLastOperationTablePrinter) Print ¶ added in v0.8.5
func (s ShootLastOperationTablePrinter) Print(data *models.V1beta1LastOperation)
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
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
type VolumeBillingTablePrinter ¶
type VolumeBillingTablePrinter struct {
// contains filtered or unexported fields
}
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 VolumeClusterInfoTablePrinter ¶ added in v0.9.6
type VolumeClusterInfoTablePrinter struct {
// contains filtered or unexported fields
}
func (VolumeClusterInfoTablePrinter) Print ¶ added in v0.9.6
func (p VolumeClusterInfoTablePrinter) Print(data []*models.V1StorageClusterInfo)
type VolumeTablePrinter ¶ added in v0.9.0
type VolumeTablePrinter struct {
// contains filtered or unexported fields
}
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