package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/cli-runtime.git
Documentation: pkg.go.dev
# Functions
IsNoCompatiblePrinterError returns true if it is a not a compatible printer otherwise it will return false.
NewConfigFlags returns ConfigFlags with default values set.
NewGoTemplatePrintFlags returns flags associated with --template printing, with default values set.
NewJSONPathPrintFlags returns flags associated with --template printing, with default values set.
NewJSONYamlPrintFlags returns flags associated with yaml or json printing, with default values set.
NewKubeTemplatePrintFlags returns flags associated with --template printing, with default values set.
NewNamePrintFlags returns flags associated with --name printing, with default values set.
NewPrintFlags returns a default *PrintFlags.
NewRecordFlags provides a RecordFlags with reasonable default values set for use.
NewResourceBuilderFlags returns a default ResourceBuilderFlags.
NewSimpleFakeResourceFinder builds a super simple ResourceFinder that just iterates over the objects you provided.
NewTestConfigFlags builds a TestConfigFlags struct to test ConfigFlags.
NewTestIOStreams returns a valid IOStreams and in, out, errout buffers for unit tests DEPRECATED: use genericiooptions.NewTestIOStreams.
NewTestIOStreamsDiscard returns a valid IOStreams that just discards DEPRECATED: use genericiooptions.NewTestIOStreamsDiscard.
ResourceFinderForResult skins a visitor for re-use as a ResourceFinder.
# Constants
ChangeCauseAnnotation is the annotation indicating a guess at "why" something was changed.
# Variables
ErrEmptyConfig is the error message to be displayed if the configuration info is missing or incomplete.
# Structs
ChangeCauseRecorder annotates a "change-cause" to an input runtime object.
CommandHeaderRoundTripper adds a layer around the standard round tripper to add Request headers before delegation.
ConfigFlags composes the set of values necessary for obtaining a REST client config.
No description provided by the author
FileNameFlags are flags for processing files.
GoTemplatePrintFlags provides default flags necessary for template printing.
JSONPathPrintFlags provides default flags necessary for template printing.
JSONYamlPrintFlags provides default flags necessary for json/yaml printing.
KubeTemplatePrintFlags composes print flags that provide both a JSONPath and a go-template printer.
NamePrintFlags provides default flags necessary for printing a resource's fully-qualified Kind.group/name, or a successful message about that resource if an Operation is provided.
NoCompatiblePrinterError is a struct that contains error information.
NoopRecorder does nothing.
PrintFlags composes common printer flag structs used across all commands, and provides a method of retrieving a known printer based on flag values provided.
RecordFlags contains all flags associated with the "--record" operation.
ResourceBuilderFlags are flags for finding resources TODO(juanvallejo): wire --local flag from commands through.
ResourceFindBuilderWrapper wraps a builder in an interface.
TestConfigFlags contains clientConfig struct and interfaces that implements RESTClientGetter.
# Interfaces
Recorder is used to record why a runtime.Object was changed in an annotation.
ResourceFinder allows mocking the resource builder TODO resource builders needs to become more interfacey.
RESTClientGetter is an interface that the ConfigFlags describe to provide an easier way to mock for commands and eliminate the direct coupling to a struct type.
# Type aliases
IOStreams provides the standard names for iostreams.
ResourceFinderFunc is a handy way to make a ResourceFinder.