cmd

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPUCol              = "CPU"
	CPUEfficiencyCol    = "CPU Eff."
	MemoryCol           = "Memory"
	MemoryEfficiencyCol = "Memory Eff."
	GPUCol              = "GPU"
	PVCol               = "PV"
	NetworkCol          = "Network"
	SharedCol           = "Shared Cost"
)

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 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

Jump to

Keyboard shortcuts

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