Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + const FlagMatchBinaryVersion + func AddPrinterFlags(cmd *cobra.Command) + func CheckErr(err error) + func DefaultClientConfig(flags *pflag.FlagSet) clientcmd.ClientConfig + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagString(cmd *cobra.Command, flag string) string + func Merge(dst runtime.Object, fragment, kind string) (runtime.Object, error) + func MultilineError(prefix string, err error) string + func MultipleErrors(prefix string, errs []error) string + func OutputVersion(cmd *cobra.Command, defaultVersion string) string + func PrinterForCommand(cmd *cobra.Command) (kubectl.ResourcePrinter, bool, error) + func ReadConfigData(location string) ([]byte, error) + func ReadConfigDataFromLocation(location string) ([]byte, error) + func ReadConfigDataFromReader(reader io.Reader, source string) ([]byte, error) + func StandardErrorMessage(err error) (string, bool) + func UsageError(cmd *cobra.Command, format string, args ...interface{}) error + type Factory struct + Client func() (*client.Client, error) + ClientConfig func() (*client.Config, error) + DefaultNamespace func() (string, error) + Describer func(mapping *meta.RESTMapping) (kubectl.Describer, error) + Generator func(name string) (kubectl.Generator, bool) + LabelsForObject func(object runtime.Object) (map[string]string, error) + Object func() (meta.RESTMapper, runtime.ObjectTyper) + PodSelectorForObject func(object runtime.Object) (string, error) + PortsForObject func(object runtime.Object) ([]string, error) + Printer func(mapping *meta.RESTMapping, noHeaders, withNamespace bool) (kubectl.ResourcePrinter, error) + RESTClient func(mapping *meta.RESTMapping) (resource.RESTClient, error) + Reaper func(mapping *meta.RESTMapping) (kubectl.Reaper, error) + Scaler func(mapping *meta.RESTMapping) (kubectl.Scaler, error) + Validator func() (validation.Schema, error) + func NewFactory(optionalClientConfig clientcmd.ClientConfig) *Factory + func (f *Factory) BindFlags(flags *pflag.FlagSet) + func (f *Factory) ClientMapperForCommand() resource.ClientMapper + func (f *Factory) PrintObject(cmd *cobra.Command, obj runtime.Object, out io.Writer) error + func (f *Factory) PrinterForMapping(cmd *cobra.Command, mapping *meta.RESTMapping, withNamespace bool) (kubectl.ResourcePrinter, error)