{"modulePath":"github.com/2lambda123/openshift-origin","version":"v3.10.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\n## Constants\n\n```go\nconst (\n\tRshRecommendedName = \"rsh\"\n\tDefaultShell       = \"/bin/sh\"\n)\n```\n\n```go\nconst CancelBuildRecommendedCommandName = \"cancel-build\"\n```\nCancelBuildRecommendedCommandName is the recommended command name.\n\n```go\nconst ExposeRecommendedName = \"expose\"\n```\nExposeRecommendedName is the recommended command name to expose app.\n\n```go\nconst LogsRecommendedCommandName = \"logs\"\n```\nLogsRecommendedCommandName is the recommended command name TODO: Probably move this pattern upstream?\n\n```go\nconst NewAppRecommendedCommandName = \"new-app\"\n```\nNewAppRecommendedCommandName is the recommended command name.\n\n```go\nconst NewBuildRecommendedCommandName = \"new-build\"\n```\nNewBuildRecommendedCommandName is the recommended command name.\n\n```go\nconst RequestProjectRecommendedCommandName = \"new-project\"\n```\nRequestProjectRecommendedCommandName is the recommended command name.\n\n```go\nconst RoutePollTimeout = 5 * time.Second\n```\nRoutePollTimoutSeconds sets how long new-app command waits for route host to be prepopulated\n\n```go\nconst StatusRecommendedName = \"status\"\n```\nStatusRecommendedName is the recommended command name.\n\n```go\nconst WhoAmIRecommendedCommandName = \"whoami\"\n```\n\n## Variables\n\n```go\nvar ErrExportOmit = fmt.Errorf(\"object is omitted\")\n```\n\n## Functions\n\n```go\nfunc CompleteAppConfig(config *newcmd.AppConfig, f *clientcmd.Factory, c *cobra.Command, args []string) error\n```\n\n```go\nfunc NewCmdAnnotate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdAnnotate is a wrapper for the Kubernetes cli annotate command\n\n```go\nfunc NewCmdApiResources(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdApiVersions(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdApply(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdApply is a wrapper for the Kubernetes cli apply command\n\n```go\nfunc NewCmdAttach(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdAttach is a wrapper for the Kubernetes cli attach command\n\n```go\nfunc NewCmdAuth(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdAutoscale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdAutoscale is a wrapper for the Kubernetes cli autoscale command\n\n```go\nfunc NewCmdBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdBuildLogs implements the OpenShift cli build-logs command\n\n```go\nfunc NewCmdCancelBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdCancelBuild implements the OpenShift cli cancel-build command\n\n```go\nfunc NewCmdCompletion(fullName string, out io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdConfig(parentName, name string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdConfig is a wrapper for the Kubernetes cli config command\n\n```go\nfunc NewCmdConvert(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdConvert is a wrapper for the Kubernetes cli convert command\n\n```go\nfunc NewCmdCp(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdCp is a wrapper for the Kubernetes cli cp command\n\n```go\nfunc NewCmdCreate(parentName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdCreate is a wrapper for the Kubernetes cli create command\n\n```go\nfunc NewCmdDebug(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdDebug creates a command for debugging pods.\n\n```go\nfunc NewCmdDelete(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdDelete is a wrapper for the Kubernetes cli delete command\n\n```go\nfunc NewCmdDeploy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdDeploy creates a new \\`deploy\\` command.\n\n```go\nfunc NewCmdDescribe(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdDescribe is a wrapper for the Kubernetes cli describe command\n\n```go\nfunc NewCmdEdit(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\nNewCmdEdit is a wrapper for the Kubernetes cli edit command\n\n```go\nfunc NewCmdExec(fullName string, f *clientcmd.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command\n```\nNewCmdExec is a wrapper for the Kubernetes cli exec command\n\n```go\nfunc NewCmdExplain(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdExplain is a wrapper for the Kubernetes cli explain command\n\n```go\nfunc NewCmdExport(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdExpose(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdExpose is a wrapper for the Kubernetes cli expose command\n\n```go\nfunc NewCmdExtract(fullName string, f *clientcmd.Factory, in io.Reader, out, errOut io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdGet(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdGet is a wrapper for the Kubernetes cli get command\n\n```go\nfunc NewCmdIdle(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command\n```\nNewCmdIdle implements the OpenShift cli idle command\n\n```go\nfunc NewCmdImportImage(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\nNewCmdImportImage implements the OpenShift cli import-image command.\n\n```go\nfunc NewCmdLabel(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdLabel is a wrapper for the Kubernetes cli label command\n\n```go\nfunc NewCmdLogs(name, baseName string, f *clientcmd.Factory, out io.Writer, errOut io.Writer) *cobra.Command\n```\nNewCmdLogs creates a new logs command that supports OpenShift resources.\n\n```go\nfunc NewCmdNewApplication(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdNewApplication implements the OpenShift cli new-app command.\n\n```go\nfunc NewCmdNewBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdNewBuild implements the OpenShift cli new-build command\n\n```go\nfunc NewCmdOptions(out io.Writer) *cobra.Command\n```\nNewCmdOptions implements the OpenShift cli options command\n\n```go\nfunc NewCmdPatch(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdPatch is a wrapper for the Kubernetes cli patch command\n\n```go\nfunc NewCmdPlugin(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdPortForward(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\nNewCmdPortForward is a wrapper for the Kubernetes cli port-forward command\n\n```go\nfunc NewCmdProcess(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdProcess implements the OpenShift cli process command\n\n```go\nfunc NewCmdProject(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdProject implements the OpenShift cli rollback command\n\n```go\nfunc NewCmdProjects(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdProjects implements the OpenShift cli rollback command\n\n```go\nfunc NewCmdProxy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdProxy is a wrapper for the Kubernetes cli proxy command\n\n```go\nfunc NewCmdReplace(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdReplace is a wrapper for the Kubernetes cli replace command\n\n```go\nfunc NewCmdRequestProject(name, baseName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\nNewCmdRequestProject implement the OpenShift cli RequestProject command.\n\n```go\nfunc NewCmdRollback(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdRollback creates a CLI rollback command.\n\n```go\nfunc NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, out, err io.Writer) *cobra.Command\n```\nNewCmdRsh returns a command that attempts to open a shell session to the server.\n\n```go\nfunc NewCmdRun(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdRun is a wrapper for the Kubernetes cli run command\n\n```go\nfunc NewCmdScale(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command\n```\nNewCmdScale is a wrapper for the Kubernetes cli scale command\n\n```go\nfunc NewCmdStartBuild(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdStartBuild implements the OpenShift cli start-build command\n\n```go\nfunc NewCmdStatus(name, baseCLIName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdStatus implements the OpenShift cli status command. baseCLIName is the path from root cmd to the parent of this cmd.\n\n```go\nfunc NewCmdTYPE(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command\n```\nNewCmdTYPE implements a TYPE command This is an example type for templating.\n\n```go\nfunc NewCmdTag(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\nNewCmdTag implements the OpenShift cli tag command.\n\n```go\nfunc NewCmdTypes(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\n\n```go\nfunc NewCmdVersion(fullName string, f *clientcmd.Factory, out io.Writer, options VersionOptions) *cobra.Command\n```\nNewCmdVersion creates a command for displaying the version of this binary\n\n```go\nfunc NewCmdWhoAmI(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command\n```\n\n```go\nfunc RunBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, opts buildapi.BuildLogOptions, args []string) error\n```\nRunBuildLogs contains all the necessary functionality for the OpenShift cli build-logs command\n\n```go\nfunc RunExport(f *clientcmd.Factory, exporter Exporter, in io.Reader, out io.Writer, cmd *cobra.Command, args []string, filenames []string) error\n```\n\n```go\nfunc RunProcess(f *clientcmd.Factory, in io.Reader, out, errout io.Writer, cmd *cobra.Command, args []string) error\n```\nRunProcess contains all the necessary functionality for the OpenShift cli process command\n\n```go\nfunc RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, o *WhoAmIOptions) error\n```\n\n```go\nfunc TransformUnsupportedError(err error) error\n```\nTransformUnsupportedError converts specific error conditions to unsupported\n\n```go\nfunc WaitForBuildComplete(c buildclient.BuildResourceInterface, name string) error\n```\nWaitForBuildComplete waits for a build identified by the name to complete\n\n## Types\n\n```go\ntype CancelBuildOptions struct {\n\tIn          io.Reader\n\tOut, ErrOut io.Writer\n\n\tDumpLogs   bool\n\tRestart    bool\n\tStates     []string\n\tNamespace  string\n\tBuildNames []string\n\n\tHasError    bool\n\tReportError func(error)\n\tMapper      meta.RESTMapper\n\tClient      buildinternalclient.Interface\n\tBuildClient buildtypedclient.BuildResourceInterface\n\tBuildLister buildlister.BuildLister\n\t// contains filtered or unexported fields\n}\n```\nCancelBuildOptions contains all the options for running the CancelBuild cli command.\n\n```go\nfunc (o *CancelBuildOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error\n```\nComplete completes all the required options.\n\n```go\nfunc (o *CancelBuildOptions) RunCancelBuild() error\n```\nRunCancelBuild implements all the necessary functionality for CancelBuild.\n\n```go\ntype DebugOptions struct {\n\tAttach kcmd.AttachOptions\n\n\tAppsClient  appsclient.AppsInterface\n\tImageClient imageclient.ImageInterface\n\n\tPrint         func(pod *kapi.Pod, w io.Writer) error\n\tLogsForObject func(object, options runtime.Object, timeout time.Duration) (*restclient.Request, error)\n\n\tNoStdin    bool\n\tForceTTY   bool\n\tDisableTTY bool\n\tFilename   string\n\tTimeout    time.Duration\n\n\tCommand            []string\n\tAnnotations        map[string]string\n\tAsRoot             bool\n\tAsNonRoot          bool\n\tAsUser             int64\n\tKeepLabels         bool // TODO: evaluate selecting the right labels automatically\n\tKeepAnnotations    bool\n\tKeepLiveness       bool\n\tKeepReadiness      bool\n\tKeepInitContainers bool\n\tOneContainer       bool\n\tNodeName           string\n\tAddEnv             []kapi.EnvVar\n\tRemoveEnv          []string\n}\n```\n\n```go\nfunc (o *DebugOptions) Complete(cmd *cobra.Command, f *clientcmd.Factory, args []string, in io.Reader, out, errout io.Writer) error\n```\n\n```go\nfunc (o *DebugOptions) Debug() error\n```\nDebug creates and runs a debugging pod.\n\n```go\nfunc (o DebugOptions) Validate() error\n```\n\n```go\ntype DefaultExporter struct{}\n```\n\n```go\nfunc (e *DefaultExporter) AddExportOptions(flags *pflag.FlagSet)\n```\n\n```go\nfunc (e *DefaultExporter) Export(obj runtime.Object, exact bool) error\n```\n\n```go\ntype DeployOptions struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployOptions holds all the options for the \\`deploy\\` command\n\n```go\nfunc (o *DeployOptions) Complete(f *clientcmd.Factory, args []string, out io.Writer) error\n```\n\n```go\nfunc (o DeployOptions) RunDeploy() error\n```\n\n```go\nfunc (o DeployOptions) Validate() error\n```\n\n```go\ntype Exporter interface {\n\tAddExportOptions(*pflag.FlagSet)\n\tExport(obj runtime.Object, exact bool) error\n}\n```\n\n```go\ntype ExtractOptions struct {\n\tOut, Err        io.Writer\n\tFilenames       []string\n\tOnlyKeys        []string\n\tTargetDirectory string\n\tOverwrite       bool\n\n\tVisitorFn             func(resource.VisitorFunc) error\n\tExtractFileContentsFn func(runtime.Object) (map[string][]byte, bool, error)\n}\n```\n\n```go\nfunc (o *ExtractOptions) Complete(f *clientcmd.Factory, in io.Reader, out io.Writer, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *ExtractOptions) Run() error\n```\n\n```go\nfunc (o *ExtractOptions) Validate() error\n```\n\n```go\ntype IdleOptions struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (o *IdleOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *IdleOptions) RunIdle(f *clientcmd.Factory) error\n```\nRunIdle runs the idling command logic, taking a list of resources or services in a file, scaling the associated scalable resources to zero, and annotating the associated endpoints objects with the scalable resources to unidle when they receive traffic.\n\n```go\ntype ImportImageOptions struct {\n\t// user set values\n\tFrom      string\n\tConfirm   bool\n\tAll       bool\n\tScheduled bool\n\tInsecure  *bool\n\n\tDryRun bool\n\n\t// internal values\n\tNamespace       string\n\tName            string\n\tTag             string\n\tTarget          string\n\tReferencePolicy string\n\n\tCommandName string\n\t// contains filtered or unexported fields\n}\n```\nImageImportOptions contains all the necessary information to perform an import.\n\n```go\nfunc (o *ImportImageOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, commandName string, out, errout io.Writer) error\n```\nComplete turns a partially defined ImportImageOptions into a solvent structure which can be validated and used for aa import.\n\n```go\nfunc (o *ImportImageOptions) Run() error\n```\nRun contains all the necessary functionality for the OpenShift cli import-image command.\n\n```go\nfunc (o *ImportImageOptions) Validate(cmd *cobra.Command) error\n```\nValidate ensures that a ImportImageOptions is valid and can be used to execute an import.\n\n```go\ntype LogsForObjectFunc func(object, options runtime.Object, timeout time.Duration) (*restclient.Request, error)\n```\n\n```go\ntype NewAppOptions struct {\n\t*ObjectGeneratorOptions\n}\n```\n\n```go\nfunc (o *NewAppOptions) Complete(baseName, commandName string, f *clientcmd.Factory, c *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error\n```\nComplete sets any default behavior for the command\n\n```go\nfunc (o *NewAppOptions) RunNewApp() error\n```\nRunNewApp contains all the necessary functionality for the OpenShift cli new-app command\n\n```go\ntype NewBuildOptions struct {\n\t*ObjectGeneratorOptions\n}\n```\n\n```go\nfunc (o *NewBuildOptions) Complete(baseName, commandName string, f *clientcmd.Factory, c *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error\n```\nComplete sets any default behavior for the command\n\n```go\nfunc (o *NewBuildOptions) RunNewBuild() error\n```\nRunNewBuild contains all the necessary functionality for the OpenShift cli new-build command\n\n```go\ntype NewProjectOptions struct {\n\tProjectName string\n\tDisplayName string\n\tDescription string\n\n\tName   string\n\tServer string\n\n\tSkipConfigWrite bool\n\n\tClient projectclient.ProjectInterface\n\n\tProjectOptions *ProjectOptions\n\tOut            io.Writer\n}\n```\nNewProjectOptions contains all the options for running the RequestProject cli command.\n\n```go\nfunc (o *NewProjectOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string) error\n```\nComplete completes all the required options.\n\n```go\nfunc (o *NewProjectOptions) Run() error\n```\nRun implements all the necessary functionality for RequestProject.\n\n```go\ntype ObjectGeneratorOptions struct {\n\tAction configcmd.BulkAction\n\tConfig *newcmd.AppConfig\n\n\tBaseName    string\n\tCommandPath string\n\tCommandName string\n\n\tIn            io.Reader\n\tErrOut        io.Writer\n\tPrintObject   func(obj runtime.Object) error\n\tLogsForObject LogsForObjectFunc\n}\n```\n\n```go\nfunc (o *ObjectGeneratorOptions) Complete(baseName, commandName string, f *clientcmd.Factory, c *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error\n```\nComplete sets all common default options for commands (new-app and new-build)\n\n```go\ntype OpenShiftLogsOptions struct {\n\t// Options should hold our own *LogOptions objects.\n\tOptions runtime.Object\n\t// KubeLogOptions contains all the necessary options for\n\t// running the upstream logs command.\n\tKubeLogOptions *kcmd.LogsOptions\n\t// Client enables access to the Build object when processing\n\t// build logs for Jenkins Pipeline Strategy builds\n\tClient buildclient.BuildsGetter\n\t// Namespace is a required parameter when accessing the Build object when processing\n\t// build logs for Jenkins Pipeline Strategy builds\n\tNamespace string\n}\n```\nOpenShiftLogsOptions holds all the necessary options for running oc logs.\n\n```go\nfunc (o *OpenShiftLogsOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) error\n```\nComplete calls the upstream Complete for the logs command and then resolves the resource a user requested to view its logs and creates the appropriate logOptions object for it.\n\n```go\nfunc (o OpenShiftLogsOptions) RunLog() error\n```\nRunLog will run the upstream logs command and may use an OpenShift logOptions object.\n\n```go\nfunc (o OpenShiftLogsOptions) Validate() error\n```\nValidate runs the upstream validation for the logs command and then it will validate any OpenShift-specific log options.\n\n```go\ntype ProjectOptions struct {\n\tConfig       clientcmdapi.Config\n\tClientConfig *restclient.Config\n\tClientFn     func() (projectclient.ProjectInterface, kclientset.Interface, error)\n\tOut          io.Writer\n\tPathOptions  *kclientcmd.PathOptions\n\n\tProjectName  string\n\tProjectOnly  bool\n\tDisplayShort bool\n\n\t// SkipAccessValidation means that if a specific name is requested, don't bother checking for access to the project\n\tSkipAccessValidation bool\n}\n```\n\n```go\nfunc (o *ProjectOptions) Complete(f *clientcmd.Factory, args []string, out io.Writer) error\n```\n\n```go\nfunc (o *ProjectOptions) GetContextFromName(contextName string) (*clientcmdapi.Context, bool)\n```\nreturns a context by the given contextName and a boolean true if the context exists\n\n```go\nfunc (o ProjectOptions) RunProject() error\n```\nRunProject contains all the necessary functionality for the OpenShift cli project command\n\n```go\nfunc (o ProjectOptions) Validate() error\n```\n\n```go\ntype ProjectsOptions struct {\n\tConfig       clientcmdapi.Config\n\tClientConfig *restclient.Config\n\tClient       projectclient.ProjectInterface\n\tKubeClient   kclientset.Interface\n\tOut          io.Writer\n\tPathOptions  *kclientcmd.PathOptions\n\n\t// internal strings\n\tCommandName string\n\n\tDisplayShort bool\n}\n```\n\n```go\nfunc (o *ProjectsOptions) Complete(f *clientcmd.Factory, args []string, commandName string, out io.Writer) error\n```\n\n```go\nfunc (o ProjectsOptions) RunProjects() error\n```\nRunProjects lists all projects a user belongs to\n\n```go\ntype RollbackOptions struct {\n\tNamespace              string\n\tTargetName             string\n\tDesiredVersion         int64\n\tFormat                 string\n\tTemplate               string\n\tDryRun                 bool\n\tIncludeTriggers        bool\n\tIncludeStrategy        bool\n\tIncludeScalingSettings bool\n\t// contains filtered or unexported fields\n}\n```\nRollbackOptions contains all the necessary state to perform a rollback.\n\n```go\nfunc (o *RollbackOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) error\n```\nComplete turns a partially defined RollbackActions into a solvent structure which can be validated and used for a rollback.\n\n```go\nfunc (o *RollbackOptions) Run() error\n```\nRun performs a rollback.\n\n```go\nfunc (o *RollbackOptions) Validate() error\n```\nValidate ensures that a RollbackOptions is valid and can be used to execute a rollback.\n\n```go\ntype RshOptions struct {\n\tForceTTY   bool\n\tDisableTTY bool\n\tExecutable string\n\tTimeout    int\n\t*kubecmd.ExecOptions\n}\n```\nRshOptions declare the arguments accepted by the Rsh command\n\n```go\nfunc (o *RshOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string) error\n```\nComplete applies the command environment to RshOptions\n\n```go\nfunc (o *RshOptions) Run() error\n```\nRun starts a remote shell session on the server\n\n```go\nfunc (o *RshOptions) Validate() error\n```\nValidate ensures that RshOptions are valid\n\n```go\ntype SortByProjectName []projectapi.Project\n```\nSortByProjectName is sort\n\n```go\nfunc (p SortByProjectName) Len() int\n```\n\n```go\nfunc (p SortByProjectName) Less(i, j int) bool\n```\n\n```go\nfunc (p SortByProjectName) Swap(i, j int)\n```\n\n```go\ntype StartBuildOptions struct {\n\tIn          io.Reader\n\tOut, ErrOut io.Writer\n\tGit         git.Repository\n\n\tFromBuild    string\n\tFromWebhook  string\n\tListWebhooks string\n\n\tCommit      string\n\tFromFile    string\n\tFromDir     string\n\tFromRepo    string\n\tFromArchive string\n\n\tEnv  []string\n\tArgs []string\n\n\tFollow              bool\n\tWaitForComplete     bool\n\tIncrementalOverride bool\n\tIncremental         bool\n\tNoCacheOverride     bool\n\tNoCache             bool\n\tLogLevel            string\n\n\tGitRepository  string\n\tGitPostReceive string\n\n\tMapper         meta.RESTMapper\n\tBuildClient    buildclient.BuildInterface\n\tBuildLogClient buildclientinternalmanual.BuildLogInterface\n\tClientConfig   *restclient.Config\n\n\tAsBinary    bool\n\tShortOutput bool\n\tEnvVar      []kapi.EnvVar\n\tBuildArgs   []kapi.EnvVar\n\tName        string\n\tNamespace   string\n}\n```\n\n```go\nfunc (o *StartBuildOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, cmdFullName string, args []string) error\n```\n\n```go\nfunc (o *StartBuildOptions) Run() error\n```\nRun contains all the necessary functionality for the OpenShift cli start-build command\n\n```go\nfunc (o *StartBuildOptions) RunListBuildWebHooks() error\n```\nRunListBuildWebHooks prints the webhooks for the provided build config.\n\n```go\nfunc (o *StartBuildOptions) RunStartBuildWebHook() error\n```\nRunStartBuildWebHook tries to trigger the provided webhook. It will attempt to utilize the current client configuration if the webhook has the same URL.\n\n```go\nfunc (o *StartBuildOptions) Validate() error\n```\nValidate returns validation errors regarding start-build\n\n```go\ntype StatusOptions struct {\n\t// contains filtered or unexported fields\n}\n```\nStatusOptions contains all the necessary options for the Openshift cli status command.\n\n```go\nfunc (o *StatusOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, baseCLIName string, args []string, out io.Writer) error\n```\nComplete completes the options for the Openshift cli status command.\n\n```go\nfunc (o StatusOptions) RunStatus() error\n```\nRunStatus contains all the necessary functionality for the OpenShift cli status command.\n\n```go\nfunc (o StatusOptions) Validate() error\n```\nValidate validates the options for the Openshift cli status command.\n\n```go\ntype TYPEOptions struct {\n\tIn          io.Reader\n\tOut, ErrOut io.Writer\n}\n```\n\n```go\nfunc (o *TYPEOptions) Complete(f *clientcmd.Factory, c *cobra.Command, args []string) error\n```\n\n```go\nfunc (o *TYPEOptions) Run() error\n```\n\n```go\nfunc (o *TYPEOptions) Validate() error\n```\n\n```go\ntype TagOptions struct {\n\t// contains filtered or unexported fields\n}\n```\nTagOptions contains all the necessary options for the cli tag command.\n\n```go\nfunc (o *TagOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) error\n```\nComplete completes all the required options for the tag command.\n\n```go\nfunc (o TagOptions) Run() error\n```\nRun contains all the necessary functionality for the OpenShift cli tag command.\n\n```go\nfunc (o TagOptions) Validate() error\n```\nValidate validates all the required options for the tag command.\n\n```go\ntype VersionOptions struct {\n\tBaseName string\n\tOut      io.Writer\n\n\tClientConfig *rest.Config\n\tClients      func() (kclientset.Interface, error)\n\n\tTimeout time.Duration\n\n\tIsServer            bool\n\tPrintEtcdVersion    bool\n\tPrintClientFeatures bool\n}\n```\n\n```go\nfunc (o *VersionOptions) Complete(cmd *cobra.Command, f *clientcmd.Factory, out io.Writer) error\n```\n\n```go\nfunc (o VersionOptions) RunVersion() error\n```\nRunVersion attempts to display client and server versions for Kubernetes and OpenShift\n\n```go\ntype WhoAmIOptions struct {\n\tUserInterface userclient.UserResourceInterface\n\n\tOut io.Writer\n}\n```\n\n```go\nfunc (o WhoAmIOptions) WhoAmI() (*userapi.User, error)\n```\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/cli/cmd","name":"cmd","synopsis":"","isRedistributable":true}
