package
0.0.0-20181029175427-e830cc0dd7b0
Repository: https://github.com/soltysh/cli-runtime.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
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.
No description provided by the author
NewRecordFlags provides a RecordFlags with reasonable default values set for use.
NewResourceBuilderFlags returns a default ResourceBuilderFlags.
NewSimpleResourceFinder builds a super simple ResourceFinder that just iterates over the objects you provided.
No description provided by the author
NewTestIOStreams returns a valid IOStreams and in, out, errout buffers for unit tests.
NewTestIOStreamsDiscard returns a valid IOStreams that just discards.
ResourceFinderForResult skins a visitor for re-use as a ResourceFinder.
# Constants
ChangeCauseAnnotation is the annotation indicating a guess at "why" something was changed.
# Structs
ChangeCauseRecorder annotates a "change-cause" to an input runtime object.
ConfigFlags composes the set of values necessary for obtaining a REST client config.
Usage of this struct by itself is discouraged.
GoTemplatePrintFlags provides default flags necessary for template printing.
IOStreams provides the standard names for iostreams.
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.
No description provided by the author
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.
No description provided by the author
# 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
ResourceFinderFunc is a handy way to make a ResourceFinder.