kubectlk8s.io/kubectl/pkg/cmd/clusterinfo Index | Files

package clusterinfo

import "k8s.io/kubectl/pkg/cmd/clusterinfo"

Index

Functions

func NewCmdClusterInfo

func NewCmdClusterInfo(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

func NewCmdClusterInfoDump

func NewCmdClusterInfoDump(restClientGetter genericclioptions.RESTClientGetter, ioStreams genericiooptions.IOStreams) *cobra.Command

Types

type ClusterInfoDumpOptions

type ClusterInfoDumpOptions struct {
	PrintFlags *genericclioptions.PrintFlags
	PrintObj   printers.ResourcePrinterFunc

	OutputDir     string
	AllNamespaces bool
	Namespaces    []string

	Timeout          time.Duration
	AppsClient       appsv1client.AppsV1Interface
	CoreClient       corev1client.CoreV1Interface
	Namespace        string
	RESTClientGetter genericclioptions.RESTClientGetter
	LogsForObject    polymorphichelpers.LogsForObjectFunc

	genericiooptions.IOStreams
}

func (*ClusterInfoDumpOptions) Complete

func (o *ClusterInfoDumpOptions) Complete(restClientGetter genericclioptions.RESTClientGetter, cmd *cobra.Command) error

func (*ClusterInfoDumpOptions) Run

func (o *ClusterInfoDumpOptions) Run() error

type ClusterInfoOptions

type ClusterInfoOptions struct {
	genericiooptions.IOStreams

	Namespace string

	Builder *resource.Builder
	Client  *restclient.Config
}

func (*ClusterInfoOptions) Complete

func (o *ClusterInfoOptions) Complete(restClientGetter genericclioptions.RESTClientGetter, cmd *cobra.Command) error

func (*ClusterInfoOptions) Run

func (o *ClusterInfoOptions) Run() error

Source Files

clusterinfo.go clusterinfo_dump.go

Version
v0.32.3 (latest)
Published
Mar 12, 2025
Platform
linux/amd64
Imports
24 packages
Last checked
6 days ago

Tools for package owners.