cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright © 2024 4ARMED Limited <[email protected]>

Copyright © 2024 4ARMED Limited <[email protected]>

Index

Constants

This section is empty.

Variables

View Source
var (
	// Executable is the name shown by Cobra when we use its cli command
	Executable = "kaudite"

	// GitVersion is overridden by Makefile with git information
	GitVersion = "NoGitVersion"
)

Functions

func Dump

func Dump() *cobra.Command

dumpCmd represents the dump command

func Escalate

func Escalate(c *escalate.Config) *cobra.Command

func Execute

func Execute()

Types

type APIResource

type APIResource struct {
	metav1.APIResource
	Group     string `json:"group" protobuf:"bytes,8,opt,name=group"`
	Preferred bool   `json:"preferred"`
}

type DumpOptions

type DumpOptions struct {
	ConfigFlags *genericclioptions.ConfigFlags
	PrintFlags  *genericclioptions.PrintFlags

	CreateDirectory bool
	OutputDirectory string

	SkipVersions []string
	SkipMetadata bool

	SplitOnKind      bool
	SplitOnNamespace bool

	genericiooptions.IOStreams
}

func (*DumpOptions) PrintObj

func (o *DumpOptions) PrintObj(printer printers.ResourcePrinter, obj interface{}, filename *string) error

func (*DumpOptions) Run

func (o *DumpOptions) Run() error

type Metadata

type Metadata struct {
	KubeVersion       string            `json:"kube_version"`
	ContextName       string            `json:"context_name"`
	ApiVersions       []string          `json:"api_versions"`
	PreferredVersions map[string]string `json:"preferred_versions"`
	ApiResources      []APIResource     `json:"api_resources"`
}

Jump to

Keyboard shortcuts

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