pkg

package
v0.0.0-...-c000e4d Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBytes

func FormatBytes(bytes uint64) string

func KubernetesClient

func KubernetesClient(flagSet *pflag.FlagSet) (client.Client, error)

func PrintLVList

func PrintLVList(lvlist *topolvmv1.LogicalVolumeList) error

func PrintSummary

func PrintSummary(summary *Summary) error

Types

type NodeSummary

type NodeSummary struct {
	Name       string
	Capacities map[string]uint64
	Used       map[string]uint64
}

type Summary

type Summary struct {
	Nodes         []*NodeSummary
	DeviceClasses []string
}

func Summarize

func Summarize(cli client.Client) (*Summary, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳