Documentation ¶
Index ¶
- Constants
- Variables
- func CompleteAppConfig(config *newcmd.AppConfig, f *clientcmd.Factory, c *cobra.Command, ...) error
- func NewCmdAnnotate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdApply(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdAttach(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdAutoscale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCancelBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, ...) *cobra.Command
- func NewCmdCompletion(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdConfig(parentName, name string, out, errOut io.Writer) *cobra.Command
- func NewCmdConvert(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCp(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdCreate(parentName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdDebug(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdDelete(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdDeploy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdDescribe(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdEdit(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command
- func NewCmdExec(fullName string, f *clientcmd.Factory, cmdIn io.Reader, ...) *cobra.Command
- func NewCmdExplain(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdExport(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
- func NewCmdExpose(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdExtract(fullName string, f *clientcmd.Factory, in io.Reader, out, errOut io.Writer) *cobra.Command
- func NewCmdGet(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdIdle(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCmdImportImage(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command
- func NewCmdLabel(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLogs(name, baseName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdNewApplication(name, baseName string, f *clientcmd.Factory, in io.Reader, ...) *cobra.Command
- func NewCmdNewBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, ...) *cobra.Command
- func NewCmdOptions(out io.Writer) *cobra.Command
- func NewCmdPatch(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdPortForward(fullName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command
- func NewCmdProcess(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdProject(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdProjects(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdProxy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdReplace(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdRequestProject(name, baseName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command
- func NewCmdRollback(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, ...) *cobra.Command
- func NewCmdRun(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdScale(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdStartBuild(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdStatus(name, baseCLIName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdTYPE(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewCmdTag(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdTypes(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdVersion(fullName string, f *clientcmd.Factory, out io.Writer, options VersionOptions) *cobra.Command
- func NewCmdWhoAmI(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func RunBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, ...) error
- func RunExport(f *clientcmd.Factory, exporter Exporter, in io.Reader, out io.Writer, ...) error
- func RunProcess(f *clientcmd.Factory, in io.Reader, out, errout io.Writer, cmd *cobra.Command, ...) error
- func RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
- func SingleObject(meta kapi.ObjectMeta) kapi.ListOptions
- func WaitForBuildComplete(c osclient.BuildInterface, name string) error
- type CancelBuildOptions
- type DebugOptions
- type DefaultExporter
- type DeployOptions
- type Exporter
- type ExtractOptions
- type IdleOptions
- type ImportImageOptions
- type LogsForObjectFunc
- type NewAppOptions
- type NewBuildOptions
- type NewProjectOptions
- type ObjectGeneratorOptions
- type OpenShiftLogsOptions
- type ProjectOptions
- type ProjectsOptions
- type RollbackOptions
- type RshOptions
- type SortByProjectName
- type StartBuildOptions
- type StatusOptions
- type TYPEOptions
- type TagOptions
- type VersionOptions
- type WhoAmIOptions
Constants ¶
const ( RshRecommendedName = "rsh" DefaultShell = "/bin/sh" )
const CancelBuildRecommendedCommandName = "cancel-build"
CancelBuildRecommendedCommandName is the recommended command name.
const LogsRecommendedCommandName = "logs"
LogsRecommendedCommandName is the recommended command name TODO: Probably move this pattern upstream?
const NewAppRecommendedCommandName = "new-app"
NewAppRecommendedCommandName is the recommended command name.
const NewBuildRecommendedCommandName = "new-build"
NewBuildRecommendedCommandName is the recommended command name.
const RequestProjectRecommendedCommandName = "new-project"
RequestProjectRecommendedCommandName is the recommended command name.
const StatusRecommendedName = "status"
StatusRecommendedName is the recommended command name.
const WhoAmIRecommendedCommandName = "whoami"
Variables ¶
var ErrExportOmit = fmt.Errorf("object is omitted")
Functions ¶
func CompleteAppConfig ¶ added in v1.1.6
func NewCmdAnnotate ¶ added in v1.0.5
NewCmdAnnotate is a wrapper for the Kubernetes cli annotate command
func NewCmdApply ¶
NewCmdApply is a wrapper for the Kubernetes cli apply command
func NewCmdAttach ¶ added in v1.0.5
func NewCmdAttach(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdAttach is a wrapper for the Kubernetes cli attach command
func NewCmdAutoscale ¶ added in v1.1.3
NewCmdAutoscale is a wrapper for the Kubernetes cli autoscale command
func NewCmdBuildLogs ¶
NewCmdBuildLogs implements the OpenShift cli build-logs command
func NewCmdCancelBuild ¶
func NewCmdCancelBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdCancelBuild implements the OpenShift cli cancel-build command
func NewCmdCompletion ¶ added in v1.3.0
func NewCmdConfig ¶ added in v0.4.4
NewCmdConfig is a wrapper for the Kubernetes cli config command
func NewCmdConvert ¶ added in v1.0.7
NewCmdConvert is a wrapper for the Kubernetes cli convert command
func NewCmdCp ¶ added in v1.5.0
func NewCmdCp(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdCp is a wrapper for the Kubernetes cli cp command
func NewCmdCreate ¶ added in v0.3.4
NewCmdCreate is a wrapper for the Kubernetes cli create command
func NewCmdDebug ¶ added in v1.1.4
func NewCmdDebug(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdDebug creates a command for debugging pods.
func NewCmdDelete ¶ added in v0.3.4
NewCmdDelete is a wrapper for the Kubernetes cli delete command
func NewCmdDeploy ¶ added in v0.5.1
NewCmdDeploy creates a new `deploy` command.
func NewCmdDescribe ¶ added in v0.4.3
NewCmdDescribe is a wrapper for the Kubernetes cli describe command
func NewCmdEdit ¶ added in v0.4.4
NewCmdEdit is a wrapper for the Kubernetes cli edit command
func NewCmdExec ¶ added in v0.4.2
func NewCmdExec(fullName string, f *clientcmd.Factory, cmdIn io.Reader, cmdOut, cmdErr io.Writer) *cobra.Command
NewCmdExec is a wrapper for the Kubernetes cli exec command
func NewCmdExplain ¶ added in v1.0.7
NewCmdExplain is a wrapper for the Kubernetes cli explain command
func NewCmdExport ¶ added in v0.6.1
func NewCmdExpose ¶ added in v0.5.3
NewCmdExpose is a wrapper for the Kubernetes cli expose command
func NewCmdExtract ¶ added in v1.3.0
func NewCmdIdle ¶ added in v1.3.0
NewCmdIdle implements the OpenShift cli idle command
func NewCmdImportImage ¶ added in v0.6.1
NewCmdImportImage implements the OpenShift cli import-image command.
func NewCmdLabel ¶ added in v0.5.2
NewCmdLabel is a wrapper for the Kubernetes cli label command
func NewCmdLogs ¶ added in v0.5.4
NewCmdLogs creates a new logs command that supports OpenShift resources.
func NewCmdNewApplication ¶ added in v0.3.1
func NewCmdNewApplication(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdNewApplication implements the OpenShift cli new-app command.
func NewCmdNewBuild ¶ added in v0.6.1
func NewCmdNewBuild(name, baseName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdNewBuild implements the OpenShift cli new-build command
func NewCmdOptions ¶ added in v0.3.1
NewCmdOptions implements the OpenShift cli options command
func NewCmdPatch ¶ added in v1.0.2
NewCmdPatch is a wrapper for the Kubernetes cli patch command
func NewCmdPortForward ¶ added in v0.4.2
NewCmdPortForward is a wrapper for the Kubernetes cli port-forward command
func NewCmdProcess ¶
func NewCmdProcess(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdProcess implements the OpenShift cli process command
func NewCmdProject ¶ added in v0.4.2
NewCmdProject implements the OpenShift cli rollback command
func NewCmdProjects ¶ added in v1.3.0
NewCmdProjects implements the OpenShift cli rollback command
func NewCmdProxy ¶ added in v0.4.3
NewCmdProxy is a wrapper for the Kubernetes cli proxy command
func NewCmdReplace ¶ added in v1.0.2
NewCmdReplace is a wrapper for the Kubernetes cli replace command
func NewCmdRequestProject ¶ added in v0.4.4
func NewCmdRequestProject(name, baseName string, f *clientcmd.Factory, out, errout io.Writer) *cobra.Command
NewCmdRequestProject implement the OpenShift cli RequestProject command.
func NewCmdRollback ¶ added in v0.2.2
NewCmdRollback creates a CLI rollback command.
func NewCmdRsh ¶ added in v1.0.4
func NewCmdRsh(name string, parent string, f *clientcmd.Factory, in io.Reader, out, err io.Writer) *cobra.Command
NewCmdRsh returns a command that attempts to open a shell session to the server.
func NewCmdRun ¶ added in v1.0.5
func NewCmdRun(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdRun is a wrapper for the Kubernetes cli run command
func NewCmdScale ¶ added in v0.5.4
NewCmdScale is a wrapper for the Kubernetes cli scale command
func NewCmdStartBuild ¶
func NewCmdStartBuild(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdStartBuild implements the OpenShift cli start-build command
func NewCmdStatus ¶ added in v0.4.3
func NewCmdStatus(name, baseCLIName, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
NewCmdStatus implements the OpenShift cli status command. baseCLIName is the path from root cmd to the parent of this cmd.
func NewCmdTYPE ¶ added in v1.2.0
func NewCmdTYPE(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command
NewCmdTYPE implements a TYPE command This is an example type for templating.
func NewCmdTypes ¶ added in v0.6.1
func NewCmdVersion ¶ added in v1.3.0
func NewCmdVersion(fullName string, f *clientcmd.Factory, out io.Writer, options VersionOptions) *cobra.Command
NewCmdVersion creates a command for displaying the version of this binary
func NewCmdWhoAmI ¶ added in v0.6.1
func RunBuildLogs ¶ added in v0.4.3
func RunBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, opts api.BuildLogOptions, args []string) error
RunBuildLogs contains all the necessary functionality for the OpenShift cli build-logs command
func RunProcess ¶ added in v0.4.3
func RunProcess(f *clientcmd.Factory, in io.Reader, out, errout io.Writer, cmd *cobra.Command, args []string) error
RunProcess contains all the necessary functionality for the OpenShift cli process command
func SingleObject ¶ added in v1.1.4
func SingleObject(meta kapi.ObjectMeta) kapi.ListOptions
SingleObject returns a ListOptions for watching a single object. TODO: move to pkg/api/helpers.go upstream.
func WaitForBuildComplete ¶ added in v1.0.6
func WaitForBuildComplete(c osclient.BuildInterface, name string) error
WaitForBuildComplete waits for a build identified by the name to complete
Types ¶
type CancelBuildOptions ¶ added in v1.3.0
type CancelBuildOptions struct { In io.Reader Out, ErrOut io.Writer DumpLogs bool Restart bool States []string Namespace string BuildNames []string HasError bool ReportError func(error) Mapper meta.RESTMapper Client osclient.Interface BuildClient osclient.BuildInterface BuildLister buildclient.BuildLister }
CancelBuildOptions contains all the options for running the CancelBuild cli command.
func (*CancelBuildOptions) Complete ¶ added in v1.3.0
func (o *CancelBuildOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error
Complete completes all the required options.
func (*CancelBuildOptions) RunCancelBuild ¶ added in v1.4.0
func (o *CancelBuildOptions) RunCancelBuild() error
RunCancelBuild implements all the necessary functionality for CancelBuild.
type DebugOptions ¶ added in v1.1.4
type DebugOptions struct { Attach kcmd.AttachOptions Client *client.Client Print func(pod *kapi.Pod, w io.Writer) error LogsForObject func(object, options runtime.Object) (*restclient.Request, error) NoStdin bool ForceTTY bool DisableTTY bool Filename string Timeout time.Duration Command []string Annotations map[string]string AsRoot bool AsNonRoot bool AsUser int64 KeepLabels bool // TODO: evaluate selecting the right labels automatically KeepAnnotations bool KeepLiveness bool KeepReadiness bool KeepInitContainers bool OneContainer bool NodeName string AddEnv []kapi.EnvVar RemoveEnv []string }
func (*DebugOptions) Debug ¶ added in v1.1.4
func (o *DebugOptions) Debug() error
Debug creates and runs a debugging pod.
func (DebugOptions) Validate ¶ added in v1.1.4
func (o DebugOptions) Validate() error
type DefaultExporter ¶ added in v1.3.0
type DefaultExporter struct{}
func (*DefaultExporter) AddExportOptions ¶ added in v1.3.0
func (e *DefaultExporter) AddExportOptions(flags *pflag.FlagSet)
type DeployOptions ¶ added in v0.5.2
type DeployOptions struct {
// contains filtered or unexported fields
}
DeployOptions holds all the options for the `deploy` command
func (DeployOptions) RunDeploy ¶ added in v0.5.2
func (o DeployOptions) RunDeploy() error
func (DeployOptions) Validate ¶ added in v0.5.2
func (o DeployOptions) Validate() error
type ExtractOptions ¶ added in v1.3.0
type ExtractOptions struct {
Out, Err io.Writer
Filenames []string
OnlyKeys []string
TargetDirectory string
Overwrite bool
VisitorFn func(resource.VisitorFunc) error
ExtractFileContentsFn func(runtime.Object) (map[string][]byte, bool, error)
}
func (*ExtractOptions) Run ¶ added in v1.3.0
func (o *ExtractOptions) Run() error
func (*ExtractOptions) Validate ¶ added in v1.3.0
func (o *ExtractOptions) Validate() error
type IdleOptions ¶ added in v1.3.0
type IdleOptions struct {
// contains filtered or unexported fields
}
func (*IdleOptions) RunIdle ¶ added in v1.3.0
func (o *IdleOptions) RunIdle(f *clientcmd.Factory) error
RunIdle 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.
type ImportImageOptions ¶ added in v1.1.4
type ImportImageOptions struct { // user set values From string Confirm bool All bool Insecure *bool // internal values Namespace string Name string Tag string Target string ReferencePolicy string CommandName string // contains filtered or unexported fields }
ImageImportOptions contains all the necessary information to perform an import.
func (*ImportImageOptions) Complete ¶ added in v1.1.4
func (o *ImportImageOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, commandName string, out, errout io.Writer) error
Complete turns a partially defined ImportImageOptions into a solvent structure which can be validated and used for aa import.
func (*ImportImageOptions) Run ¶ added in v1.1.4
func (o *ImportImageOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli import-image command.
type LogsForObjectFunc ¶ added in v1.1.6
type LogsForObjectFunc func(object, options runtime.Object) (*restclient.Request, error)
type NewAppOptions ¶ added in v1.1.6
type NewAppOptions struct {
*ObjectGeneratorOptions
}
func (*NewAppOptions) Complete ¶ added in v1.1.6
func (o *NewAppOptions) Complete(baseName, commandName string, f *clientcmd.Factory, c *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error
Complete sets any default behavior for the command
func (*NewAppOptions) RunNewApp ¶ added in v1.4.0
func (o *NewAppOptions) RunNewApp() error
RunNewApp contains all the necessary functionality for the OpenShift cli new-app command
type NewBuildOptions ¶ added in v1.1.6
type NewBuildOptions struct {
*ObjectGeneratorOptions
}
func (*NewBuildOptions) Complete ¶ added in v1.1.6
func (o *NewBuildOptions) Complete(baseName, commandName string, f *clientcmd.Factory, c *cobra.Command, args []string, in io.Reader, out, errout io.Writer) error
Complete sets any default behavior for the command
func (*NewBuildOptions) RunNewBuild ¶ added in v1.4.0
func (o *NewBuildOptions) RunNewBuild() error
RunNewBuild contains all the necessary functionality for the OpenShift cli new-build command
type NewProjectOptions ¶ added in v0.4.4
type NewProjectOptions struct { ProjectName string DisplayName string Description string Name string Server string SkipConfigWrite bool Client client.Interface ProjectOptions *ProjectOptions Out io.Writer }
NewProjectOptions contains all the options for running the RequestProject cli command.
func (*NewProjectOptions) Run ¶ added in v0.4.4
func (o *NewProjectOptions) Run() error
Run implements all the necessary functionality for RequestProject.
type ObjectGeneratorOptions ¶
type OpenShiftLogsOptions ¶ added in v1.0.7
type OpenShiftLogsOptions struct { // Options should hold our own *LogOptions objects. Options runtime.Object // KubeLogOptions contains all the necessary options for // running the upstream logs command. KubeLogOptions *kcmd.LogsOptions }
OpenShiftLogsOptions holds all the necessary options for running oc logs.
func (*OpenShiftLogsOptions) Complete ¶ added in v1.0.7
func (o *OpenShiftLogsOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) error
Complete 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.
func (OpenShiftLogsOptions) RunLog ¶ added in v1.0.7
func (o OpenShiftLogsOptions) RunLog() error
RunLog will run the upstream logs command and may use an OpenShift logOptions object.
func (OpenShiftLogsOptions) Validate ¶ added in v1.0.7
func (o OpenShiftLogsOptions) Validate() error
Validate runs the upstream validation for the logs command and then it will validate any OpenShift-specific log options.
type ProjectOptions ¶ added in v0.5.1
type ProjectOptions struct { Config clientcmdapi.Config ClientConfig *restclient.Config ClientFn func() (*client.Client, kclientset.Interface, error) Out io.Writer PathOptions *kclientcmd.PathOptions ProjectName string ProjectOnly bool DisplayShort bool // SkipAccessValidation means that if a specific name is requested, don't bother checking for access to the project SkipAccessValidation bool }
func (*ProjectOptions) GetContextFromName ¶ added in v1.5.0
func (o *ProjectOptions) GetContextFromName(contextName string) (*clientcmdapi.Context, bool)
returns a context by the given contextName and a boolean true if the context exists
func (ProjectOptions) RunProject ¶ added in v0.5.1
func (o ProjectOptions) RunProject() error
RunProject contains all the necessary functionality for the OpenShift cli project command
func (ProjectOptions) Validate ¶ added in v0.5.1
func (o ProjectOptions) Validate() error
type ProjectsOptions ¶ added in v1.3.0
type ProjectsOptions struct { Config clientcmdapi.Config ClientConfig *restclient.Config Client *client.Client KubeClient kclientset.Interface Out io.Writer PathOptions *kclientcmd.PathOptions // internal strings CommandName string DisplayShort bool }
func (ProjectsOptions) RunProjects ¶ added in v1.3.0
func (o ProjectsOptions) RunProjects() error
RunProjects lists all projects a user belongs to
type RollbackOptions ¶ added in v1.0.2
type RollbackOptions struct { Namespace string TargetName string DesiredVersion int64 Format string Template string DryRun bool IncludeTriggers bool IncludeStrategy bool IncludeScalingSettings bool // contains filtered or unexported fields }
RollbackOptions contains all the necessary state to perform a rollback.
func (*RollbackOptions) Complete ¶ added in v1.0.2
Complete turns a partially defined RollbackActions into a solvent structure which can be validated and used for a rollback.
func (*RollbackOptions) Run ¶ added in v1.0.2
func (o *RollbackOptions) Run() error
Run performs a rollback.
func (*RollbackOptions) Validate ¶ added in v1.0.2
func (o *RollbackOptions) Validate() error
Validate ensures that a RollbackOptions is valid and can be used to execute a rollback.
type RshOptions ¶ added in v1.0.7
type RshOptions struct { ForceTTY bool DisableTTY bool Executable string Timeout int *kubecmd.ExecOptions }
RshOptions declare the arguments accepted by the Rsh command
func (*RshOptions) Complete ¶ added in v1.0.7
Complete applies the command environment to RshOptions
func (*RshOptions) Run ¶ added in v1.0.7
func (o *RshOptions) Run() error
Run starts a remote shell session on the server
func (*RshOptions) Validate ¶ added in v1.0.7
func (o *RshOptions) Validate() error
Validate ensures that RshOptions are valid
type SortByProjectName ¶ added in v1.3.0
SortByProjectName is sort
func (SortByProjectName) Len ¶ added in v1.3.0
func (p SortByProjectName) Len() int
func (SortByProjectName) Less ¶ added in v1.3.0
func (p SortByProjectName) Less(i, j int) bool
func (SortByProjectName) Swap ¶ added in v1.3.0
func (p SortByProjectName) Swap(i, j int)
type StartBuildOptions ¶ added in v1.1.6
type StartBuildOptions struct { In io.Reader Out, ErrOut io.Writer Git git.Repository FromBuild string FromWebhook string ListWebhooks string Commit string FromFile string FromDir string FromRepo string FromArchive string Env []string Args []string Follow bool WaitForComplete bool LogLevel string GitRepository string GitPostReceive string Mapper meta.RESTMapper Client osclient.Interface ClientConfig kclientcmd.ClientConfig AsBinary bool ShortOutput bool EnvVar []kapi.EnvVar BuildArgs []kapi.EnvVar Name string Namespace string }
func (*StartBuildOptions) Run ¶ added in v1.1.6
func (o *StartBuildOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli start-build command
func (*StartBuildOptions) RunListBuildWebHooks ¶ added in v1.1.6
func (o *StartBuildOptions) RunListBuildWebHooks() error
RunListBuildWebHooks prints the webhooks for the provided build config.
func (*StartBuildOptions) RunStartBuildWebHook ¶ added in v1.1.6
func (o *StartBuildOptions) RunStartBuildWebHook() error
RunStartBuildWebHook tries to trigger the provided webhook. It will attempt to utilize the current client configuration if the webhook has the same URL.
type StatusOptions ¶ added in v1.1.1
type StatusOptions struct {
// contains filtered or unexported fields
}
StatusOptions contains all the necessary options for the Openshift cli status command.
func (*StatusOptions) Complete ¶ added in v1.1.1
func (o *StatusOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, baseCLIName string, args []string, out io.Writer) error
Complete completes the options for the Openshift cli status command.
func (StatusOptions) RunStatus ¶ added in v1.1.1
func (o StatusOptions) RunStatus() error
RunStatus contains all the necessary functionality for the OpenShift cli status command.
func (StatusOptions) Validate ¶ added in v1.1.1
func (o StatusOptions) Validate() error
Validate validates the options for the Openshift cli status command.
type TYPEOptions ¶ added in v1.2.0
func (*TYPEOptions) Run ¶ added in v1.2.0
func (o *TYPEOptions) Run() error
func (*TYPEOptions) Validate ¶ added in v1.2.0
func (o *TYPEOptions) Validate() error
type TagOptions ¶ added in v1.0.7
type TagOptions struct {
// contains filtered or unexported fields
}
TagOptions contains all the necessary options for the cli tag command.
func (*TagOptions) Complete ¶ added in v1.0.7
func (o *TagOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) error
Complete completes all the required options for the tag command.
func (TagOptions) Run ¶
func (o TagOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli tag command.
func (TagOptions) Validate ¶ added in v1.0.7
func (o TagOptions) Validate() error
Validate validates all the required options for the tag command.
type VersionOptions ¶ added in v1.3.0
type VersionOptions struct { BaseName string Out io.Writer ClientConfig kclientcmd.ClientConfig Clients func() (*client.Client, kclientset.Interface, error) Timeout time.Duration IsServer bool PrintEtcdVersion bool PrintClientFeatures bool }
func (VersionOptions) RunVersion ¶ added in v1.3.0
func (o VersionOptions) RunVersion() error
RunVersion attempts to display client and server versions for Kubernetes and OpenShift
type WhoAmIOptions ¶ added in v0.6.1
type WhoAmIOptions struct { UserInterface osclient.UserInterface Out io.Writer }
Source Files ¶
- buildlogs.go
- cancelbuild.go
- debug.go
- deploy.go
- example.go
- export.go
- exporter.go
- expose.go
- extract.go
- helper.go
- idle.go
- importimage.go
- logs.go
- newapp.go
- newbuild.go
- options.go
- process.go
- project.go
- projects.go
- request_project.go
- rollback.go
- rsh.go
- startbuild.go
- status.go
- tag.go
- types.go
- version.go
- whoami.go
- wrappers.go