Versions in this module Expand all Collapse all v1 v1.3.0-alpha.3 Apr 26, 2016 v1.2.3 Apr 22, 2016 Changes in this version + func CreateConfigMap(f *cmdutil.Factory, cmdOut io.Writer, cmd *cobra.Command, args []string) error + func CreateNamespace(f *cmdutil.Factory, cmdOut io.Writer, cmd *cobra.Command, args []string) error + func CreateSecretDockerRegistry(f *cmdutil.Factory, cmdOut io.Writer, cmd *cobra.Command, args []string) error + func CreateSecretGeneric(f *cmdutil.Factory, cmdOut io.Writer, cmd *cobra.Command, args []string) error + func CreateServiceAccount(f *cmdutil.Factory, cmdOut io.Writer, cmd *cobra.Command, args []string) error + func NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error) + func NewCmdAnnotate(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdApply(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdAttach(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command + func NewCmdAutoscale(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdConvert(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdCordon(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdCreateConfigMap(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdCreateNamespace(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdCreateSecret(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdCreateSecretDockerRegistry(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdCreateSecretGeneric(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdCreateServiceAccount(f *cmdutil.Factory, cmdOut io.Writer) *cobra.Command + func NewCmdDrain(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdEdit(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdExplain(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdLogs(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdUncordon(f *cmdutil.Factory, out io.Writer) *cobra.Command + func RunApply(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, options *ApplyOptions) error + func RunAutoscale(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error + func RunCreateSubcommand(f *cmdutil.Factory, cmd *cobra.Command, out io.Writer, ...) error + func RunEdit(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error + func RunExplain(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + type AnnotateOptions struct + func (o *AnnotateOptions) Complete(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) (err error) + func (o AnnotateOptions) RunAnnotate() error + func (o AnnotateOptions) Validate(args []string) error + type ApplyOptions struct + Filenames []string + type AttachOptions struct + Attach RemoteAttach + Client *client.Client + Config *restclient.Config + ContainerName string + Err io.Writer + In io.Reader + Namespace string + Out io.Writer + PodName string + Stdin bool + TTY bool + func (p *AttachOptions) Complete(f *cmdutil.Factory, cmd *cobra.Command, argsIn []string) error + func (p *AttachOptions) GetContainer(pod *api.Pod) api.Container + func (p *AttachOptions) GetContainerName(pod *api.Pod) string + func (p *AttachOptions) Run() error + func (p *AttachOptions) Validate() error + type ConvertOptions struct + func (o *ConvertOptions) Complete(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) (err error) + func (o *ConvertOptions) RunConvert() error + type CreateOptions struct + Filenames []string + type CreateSubcommandOptions struct + DryRun bool + Name string + OutputFormat string + StructuredGenerator kubectl.StructuredGenerator + type DefaultRemoteAttach struct + func (*DefaultRemoteAttach) Attach(method string, url *url.URL, config *restclient.Config, stdin io.Reader, ...) error + type DefaultRemoteExecutor struct + func (*DefaultRemoteExecutor) Execute(method string, url *url.URL, config *restclient.Config, stdin io.Reader, ...) error + type DeleteOptions struct + Filenames []string + type DescribeOptions struct + Filenames []string + type DrainOptions struct + Force bool + GracePeriodSeconds int + IgnoreDaemonsets bool + func (o *DrainOptions) RunCordonOrUncordon(desired bool) error + func (o *DrainOptions) RunDrain() error + func (o *DrainOptions) SetupDrain(cmd *cobra.Command, args []string) error + type ExecOptions struct + Client *client.Client + Command []string + Config *restclient.Config + ContainerName string + Err io.Writer + Executor RemoteExecutor + In io.Reader + Namespace string + Out io.Writer + PodName string + Stdin bool + TTY bool + func (p *ExecOptions) Complete(f *cmdutil.Factory, cmd *cobra.Command, argsIn []string, argsLenAtDash int) error + func (p *ExecOptions) Run() error + func (p *ExecOptions) Validate() error + type ExposeOptions struct + Filenames []string + type GetOptions struct + Filenames []string + type LabelOptions struct + Filenames []string + type LogsOptions struct + ClientMapper resource.ClientMapper + Decoder runtime.Decoder + LogsForObject func(object, options runtime.Object) (*restclient.Request, error) + Mapper meta.RESTMapper + Namespace string + Options runtime.Object + Out io.Writer + ResourceArg string + Typer runtime.ObjectTyper + func (o *LogsOptions) Complete(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func (o LogsOptions) RunLogs() (int64, error) + func (o LogsOptions) Validate() error + type PatchOptions struct + Filenames []string + type RemoteAttach interface + Attach func(method string, url *url.URL, config *restclient.Config, stdin io.Reader, ...) error + type RemoteExecutor interface + Execute func(method string, url *url.URL, config *restclient.Config, stdin io.Reader, ...) error + type ReplaceOptions struct + Filenames []string + type RollingUpdateOptions struct + Filenames []string + type ScaleOptions struct + Filenames []string + type StopOptions struct + Filenames []string v1.2.0-beta.0 Mar 4, 2016 v1.2.0-alpha.3 Nov 3, 2015 v1.1.7-beta.0 Jan 27, 2016 v1.1.4-beta.0 Dec 7, 2015 v1.1.0-beta Sep 25, 2015 v1.0.8-beta Oct 27, 2015 v1.0.2 Aug 1, 2015 v0 v0.21.2 Jul 11, 2015 Changes in this version + func DeleteResult(r *resource.Result, out io.Writer, ignoreNotFound bool) error + func DescribeMatchingResources(mapper meta.RESTMapper, typer runtime.ObjectTyper, describer kubectl.Describer, ...) error + func NewCmdPatch(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdReplace(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdRun(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdScale(f *cmdutil.Factory, out io.Writer) *cobra.Command + func ReapResult(r *resource.Result, f *cmdutil.Factory, out io.Writer, ...) error + func Run(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunPatch(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunReplace(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error + func RunScale(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunStop(f *cmdutil.Factory, cmd *cobra.Command, args []string, ...) error v0.15.0 Apr 13, 2015 Changes in this version + func NewCmdApiVersions(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdClusterInfo(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdCreate(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdDescribe(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdExec(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command + func NewCmdExposeService(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdLabel(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdPortForward(f *cmdutil.Factory) *cobra.Command + func NewCmdResize(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdRollingUpdate(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdRunContainer(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdStop(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewCmdUpdate(f *cmdutil.Factory, out io.Writer) *cobra.Command + func NewKubectlCommand(f *cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command + func RunApiVersions(f *cmdutil.Factory, out io.Writer) error + func RunClusterInfo(factory *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error + func RunCreate(f *cmdutil.Factory, out io.Writer, filenames util.StringList) error + func RunDelete(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error + func RunDescribe(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunExec(f *cmdutil.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer, ...) error + func RunExpose(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunGet(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunLabel(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunLog(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunPortForward(f *cmdutil.Factory, cmd *cobra.Command, args []string) error + func RunProxy(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error + func RunResize(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunRollingUpdate(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunRunContainer(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string) error + func RunUpdate(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error + func RunVersion(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command) error + func ValidateArgs(cmd *cobra.Command, args []string) error v0.5.5 Dec 2, 2014 Changes in this version + func CompareNamespaceFromFile(cmd *cobra.Command, namespace string) error + func DataToObjects(m meta.RESTMapper, t runtime.ObjectTyper, data []byte) (result []runtime.Object, errors errs.ValidationErrorList) + func FirstNonEmptyString(args ...string) string + func GetFilesFromDir(directory string, fileType string) []string + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagBoolPtr(cmd *cobra.Command, flag string) *bool + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagString(cmd *cobra.Command, flag string) string + func GetKubeConfig(cmd *cobra.Command) *client.Config + func NewCmdLog(out io.Writer) *cobra.Command + func NewCmdNamespace(out io.Writer) *cobra.Command + func NewCmdProxy(out io.Writer) *cobra.Command + func NewCmdVersion(out io.Writer) *cobra.Command + func ReadConfigData(location string) ([]byte, error) + func ReadConfigDataFromLocation(location string) ([]byte, error) + func ResourceFromArgs(cmd *cobra.Command, args []string, mapper meta.RESTMapper) (mapping *meta.RESTMapping, namespace, name string) + func ResourceFromArgsOrFile(cmd *cobra.Command, args []string, filename string, typer runtime.ObjectTyper, ...) (mapping *meta.RESTMapping, namespace, name string) + func ResourceFromFile(filename string, typer runtime.ObjectTyper, mapper meta.RESTMapper) (mapping *meta.RESTMapping, namespace, name string, data []byte) + func ResourceOrTypeFromArgs(cmd *cobra.Command, args []string, mapper meta.RESTMapper) (mapping *meta.RESTMapping, namespace, name string) + type Factory struct + Client func(*cobra.Command, *meta.RESTMapping) (kubectl.RESTClient, error) + Describer func(*cobra.Command, *meta.RESTMapping) (kubectl.Describer, error) + Mapper meta.RESTMapper + Printer func(cmd *cobra.Command, mapping *meta.RESTMapping, noHeaders bool) (kubectl.ResourcePrinter, error) + Typer runtime.ObjectTyper + func NewFactory() *Factory + func (f *Factory) NewCmdCreate(out io.Writer) *cobra.Command + func (f *Factory) NewCmdCreateAll(out io.Writer) *cobra.Command + func (f *Factory) NewCmdDelete(out io.Writer) *cobra.Command + func (f *Factory) NewCmdDescribe(out io.Writer) *cobra.Command + func (f *Factory) NewCmdGet(out io.Writer) *cobra.Command + func (f *Factory) NewCmdUpdate(out io.Writer) *cobra.Command + func (f *Factory) Run(out io.Writer)