kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/top Index | Files

package top

import "k8s.io/kubernetes/pkg/kubectl/cmd/top"

Index

Package Files

top.go top_node.go top_pod.go

func NewCmdTop Uses

func NewCmdTop(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdTopNode Uses

func NewCmdTopNode(f cmdutil.Factory, o *TopNodeOptions, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdTopPod Uses

func NewCmdTopPod(f cmdutil.Factory, o *TopPodOptions, streams genericclioptions.IOStreams) *cobra.Command

func SupportedMetricsAPIVersionAvailable Uses

func SupportedMetricsAPIVersionAvailable(discoveredAPIGroups *metav1.APIGroupList) bool

type HeapsterTopOptions Uses

type HeapsterTopOptions struct {
    Namespace string
    Service   string
    Scheme    string
    Port      string
}

func (*HeapsterTopOptions) Bind Uses

func (o *HeapsterTopOptions) Bind(flags *pflag.FlagSet)

type TopNodeOptions Uses

type TopNodeOptions struct {
    ResourceName    string
    Selector        string
    SortBy          string
    NoHeaders       bool
    NodeClient      corev1client.CoreV1Interface
    HeapsterOptions HeapsterTopOptions
    Client          *metricsutil.HeapsterMetricsClient
    Printer         *metricsutil.TopCmdPrinter
    DiscoveryClient discovery.DiscoveryInterface
    MetricsClient   metricsclientset.Interface

    genericclioptions.IOStreams
}

TopNodeOptions contains all the options for running the top-node cli command.

func (*TopNodeOptions) Complete Uses

func (o *TopNodeOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (TopNodeOptions) RunTopNode Uses

func (o TopNodeOptions) RunTopNode() error

func (*TopNodeOptions) Validate Uses

func (o *TopNodeOptions) Validate() error

type TopPodOptions Uses

type TopPodOptions struct {
    ResourceName    string
    Namespace       string
    Selector        string
    SortBy          string
    AllNamespaces   bool
    PrintContainers bool
    NoHeaders       bool
    PodClient       corev1client.PodsGetter
    HeapsterOptions HeapsterTopOptions
    Client          *metricsutil.HeapsterMetricsClient
    Printer         *metricsutil.TopCmdPrinter
    DiscoveryClient discovery.DiscoveryInterface
    MetricsClient   metricsclientset.Interface

    genericclioptions.IOStreams
}

func (*TopPodOptions) Complete Uses

func (o *TopPodOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

func (TopPodOptions) RunTopPod Uses

func (o TopPodOptions) RunTopPod() error

func (*TopPodOptions) Validate Uses

func (o *TopPodOptions) Validate() error

Package top imports 19 packages (graph) and is imported by 10 packages. Updated 2019-07-22. Refresh now. Tools for package owners.