Documentation ¶
Index ¶
Constants ¶
const ( ClusterCol = "Cluster" NamespaceCol = "Namespace" CPUCol = "CPU" CPUEfficiencyCol = "CPU Eff." MemoryCol = "Memory" MemoryEfficiencyCol = "Memory Eff." GPUCol = "GPU" PVCol = "PV" NetworkCol = "Network" )
Variables ¶
This section is empty.
Functions ¶
func NewCmdCost ¶
func NewCmdCost( streams genericclioptions.IOStreams, GitCommit string, GitBranch string, GitState string, GitSummary string, BuildDate string, ) *cobra.Command
NewCmdCost provides a cobra command that acts as a parent command for all subcommands. It provides only basic usage information. See common.go and the subcommands for the actual functionality.
Types ¶
type CostOptions ¶
type CostOptions struct {
// contains filtered or unexported fields
}
CostOptions holds common options for querying and displaying data from the kubecost API
func (*CostOptions) Complete ¶
func (co *CostOptions) Complete()
func (*CostOptions) Validate ¶
func (co *CostOptions) Validate() error
type CostOptionsController ¶
type CostOptionsController struct { CostOptions // contains filtered or unexported fields }
CostOptionsController contains the standard CostOptions and any options specific to controller queries.
type CostOptionsDeployment ¶
type CostOptionsDeployment struct { CostOptions // contains filtered or unexported fields }
CostOptionsDeployment contains the standard CostOptions and any options specific to deployment queries.
type CostOptionsLabel ¶
type CostOptionsLabel struct { CostOptions // contains filtered or unexported fields }
CostOptionsLabel contains the standard CostOptions and any options specific to label queries.
type CostOptionsNamespace ¶
type CostOptionsNamespace struct {
CostOptions
}
CostOptionsNamespace contains the standard CostOptions and any options specific to namespace queries.
type CostOptionsPod ¶ added in v0.1.10
type CostOptionsPod struct { CostOptions // contains filtered or unexported fields }
CostOptionsPod contains the standard CostOptions and any options specific to pod queries.
type KubeOptions ¶
type KubeOptions struct { genericclioptions.IOStreams // contains filtered or unexported fields }
KubeOptions provides information required to communicate with the Kubernetes API
func NewKubeOptions ¶
func NewKubeOptions(streams genericclioptions.IOStreams) *KubeOptions
NewCommonCostOptions creates the default set of cost options
func (*KubeOptions) Complete ¶
func (o *KubeOptions) Complete(cmd *cobra.Command, args []string) error
Complete sets all information required for getting cost information
func (*KubeOptions) Validate ¶
func (o *KubeOptions) Validate() error
Validate ensures that all required arguments and flag values are provided