Documentation ¶
Index ¶
- Constants
- Variables
- func CreateEdgeRoute(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func CreatePassthroughRoute(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func CreateReencryptRoute(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) 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(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdConfig(parentName, name string) *cobra.Command
- func NewCmdConvert(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCreate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCreateEdgeRoute(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCreatePassthroughRoute(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCreateReencryptRoute(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdCreateRoute(fullName string, f *clientcmd.Factory, out 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 io.Writer) *cobra.Command
- func NewCmdDeploy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdDescribe(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdEdit(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdExec(fullName string, f *clientcmd.Factory, cmdIn io.Reader, ...) *cobra.Command
- func NewCmdExplain(fullName string, f *clientcmd.Factory, out 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 NewCmdGet(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdImportImage(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLabel(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLogin(fullName string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func NewCmdLogout(name, fullName, ocLoginFullCommand string, f *osclientcmd.Factory, ...) *cobra.Command
- func NewCmdLogs(name, parent string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdNewApplication(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdNewBuild(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *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) *cobra.Command
- func NewCmdProcess(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdProject(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(baseName, name, ocLoginName, ocProjectName string, f *clientcmd.Factory, ...) *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 io.Writer) *cobra.Command
- func NewCmdStatus(name, fullName string, f *clientcmd.Factory, out 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 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 RunCancelBuild(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunExport(f *clientcmd.Factory, exporter Exporter, in io.Reader, out io.Writer, ...) error
- func RunListBuildWebHooks(f *clientcmd.Factory, out, errOut io.Writer, ...) error
- func RunLogin(cmd *cobra.Command, options *LoginOptions) error
- func RunNewApplication(fullName string, f *clientcmd.Factory, out io.Writer, c *cobra.Command, ...) error
- func RunNewBuild(fullName string, f *clientcmd.Factory, out io.Writer, in io.Reader, ...) error
- func RunProcess(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunStartBuild(f *clientcmd.Factory, in io.Reader, out io.Writer, cmd *cobra.Command, ...) error
- func RunStartBuildWebHook(f *clientcmd.Factory, out io.Writer, webhook string, ...) error
- func RunWhoAmI(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
- func SingleObject(meta kapi.ObjectMeta) kapi.ListOptions
- func Until(timeout time.Duration, watcher watch.Interface, ...) (*watch.Event, error)
- func WaitForBuildComplete(c osclient.BuildInterface, name string) error
- type DebugOptions
- type DeployOptions
- type Exporter
- type ImportImageOptions
- type LoginOptions
- type LogoutOptions
- type NewProjectOptions
- type OpenShiftLogsOptions
- type ProjectOptions
- type RollbackOptions
- type RshOptions
- type StatusOptions
- type TagOptions
- type WatchConditionFunc
- type WhoAmIOptions
Constants ¶
const LogsRecommendedName = "logs"
LogsRecommendedName is the recommended command name TODO: Probably move this pattern upstream?
const (
RshRecommendedName = "rsh"
)
const StatusRecommendedName = "status"
StatusRecommendedName is the recommended command name.
const WhoAmIRecommendedCommandName = "whoami"
Variables ¶
var ErrExportOmit = fmt.Errorf("object is omitted")
var ErrPodCompleted = fmt.Errorf("pod ran to completion")
ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.
Functions ¶
func CreateEdgeRoute ¶ added in v1.1.2
CreateEdgeRoute implements the behavior to run the create edge route command.
func CreatePassthroughRoute ¶ added in v1.1.2
func CreatePassthroughRoute(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
CreatePassthroughRoute implements the behavior to run the create passthrough route command.
func CreateReencryptRoute ¶ added in v1.1.2
func CreateReencryptRoute(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
CreateReencryptRoute implements the behavior to run the create reencrypt route command.
func NewCmdAnnotate ¶ added in v1.0.5
NewCmdAnnotate is a wrapper for the Kubernetes cli annotate command
func NewCmdApply ¶ added in v1.0.7
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 ¶
NewCmdCancelBuild implements the OpenShift cli cancel-build command
func NewCmdConfig ¶
func NewCmdConvert ¶ added in v1.0.7
func NewCmdCreate ¶
NewCmdCreate is a wrapper for the Kubernetes cli create command
func NewCmdCreateEdgeRoute ¶ added in v1.1.2
NewCmdCreateEdgeRoute is a macro command to create an edge route.
func NewCmdCreatePassthroughRoute ¶ added in v1.1.2
func NewCmdCreatePassthroughRoute(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
NewCmdCreatePassthroughRoute is a macro command to create a passthrough route.
func NewCmdCreateReencryptRoute ¶ added in v1.1.2
func NewCmdCreateReencryptRoute(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
NewCmdCreateReencryptRoute is a macro command to create a reencrypt route.
func NewCmdCreateRoute ¶ added in v1.1.2
NewCmdCreateRoute is a macro command to create a secured route.
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 ¶
NewCmdDelete is a wrapper for the Kubernetes cli delete command
func NewCmdDeploy ¶
NewCmdDeploy creates a new `deploy` command.
func NewCmdDescribe ¶
NewCmdDescribe is a wrapper for the Kubernetes cli describe command
func NewCmdEdit ¶
func NewCmdExec ¶
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
func NewCmdExport ¶
func NewCmdExpose ¶
NewCmdExpose is a wrapper for the Kubernetes cli expose command
func NewCmdImportImage ¶
NewCmdImportImage implements the OpenShift cli import-image command.
func NewCmdLabel ¶
NewCmdLabel is a wrapper for the Kubernetes cli label command
func NewCmdLogin ¶
func NewCmdLogin(fullName string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
NewCmdLogin implements the OpenShift cli login command
func NewCmdLogout ¶
func NewCmdLogout(name, fullName, ocLoginFullCommand string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
NewCmdLogout implements the OpenShift cli logout command
func NewCmdLogs ¶
NewCmdLogs creates a new logs command that supports OpenShift resources.
func NewCmdNewApplication ¶
NewCmdNewApplication implements the OpenShift cli new-app command
func NewCmdNewBuild ¶
func NewCmdNewBuild(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
NewCmdNewBuild implements the OpenShift cli new-build command
func NewCmdOptions ¶
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 ¶
NewCmdPortForward is a wrapper for the Kubernetes cli port-forward command
func NewCmdProcess ¶
NewCmdProcess implements the OpenShift cli process command
func NewCmdProject ¶
NewCmdProject implements the OpenShift cli rollback command
func NewCmdProxy ¶
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 ¶
func NewCmdRollback ¶
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 ¶
NewCmdScale is a wrapper for the Kubernetes cli scale command
func NewCmdStartBuild ¶
func NewCmdStartBuild(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.Command
NewCmdStartBuild implements the OpenShift cli start-build command
func NewCmdStatus ¶
NewCmdStatus implements the OpenShift cli status command.
func NewCmdTypes ¶
func NewCmdWhoAmI ¶
func RunBuildLogs ¶
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 RunCancelBuild ¶
RunCancelBuild contains all the necessary functionality for the OpenShift cli cancel-build command
func RunListBuildWebHooks ¶
func RunListBuildWebHooks(f *clientcmd.Factory, out, errOut io.Writer, name, resource, webhookFilter string) error
RunListBuildWebHooks prints the webhooks for the provided build config.
func RunLogin ¶
func RunLogin(cmd *cobra.Command, options *LoginOptions) error
RunLogin contains all the necessary functionality for the OpenShift cli login command
func RunNewApplication ¶
func RunNewApplication(fullName string, f *clientcmd.Factory, out io.Writer, c *cobra.Command, args []string, config *newcmd.AppConfig) error
RunNewApplication contains all the necessary functionality for the OpenShift cli new-app command
func RunNewBuild ¶
func RunNewBuild(fullName string, f *clientcmd.Factory, out io.Writer, in io.Reader, c *cobra.Command, args []string, config *newcmd.AppConfig) error
RunNewBuild contains all the necessary functionality for the OpenShift cli new-build command
func RunProcess ¶
RunProject contains all the necessary functionality for the OpenShift cli process command
func RunStartBuild ¶
func RunStartBuild(f *clientcmd.Factory, in io.Reader, out io.Writer, cmd *cobra.Command, envParams []string, args []string, webhooks util.StringFlag) error
RunStartBuild contains all the necessary functionality for the OpenShift cli start-build command
func RunStartBuildWebHook ¶
func RunStartBuildWebHook(f *clientcmd.Factory, out io.Writer, webhook string, path, postReceivePath string, repo git.Repository) error
RunStartBuildWebHook tries to trigger the provided webhook. It will attempt to utilize the current client configuration if the webhook has the same URL.
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 Until ¶ added in v1.1.4
func Until(timeout time.Duration, watcher watch.Interface, conditions ...WatchConditionFunc) (*watch.Event, error)
Until reads items from the watch until each provided condition succeeds, and then returns the last watch encountered. The first condition that returns an error terminates the watch (and the event is also returned). If no event has been received, the returned event will be nil. TODO: move to pkg/watch 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 DebugOptions ¶ added in v1.1.4
type DebugOptions struct { Attach kcmd.AttachOptions Print func(pod *kapi.Pod, w io.Writer) error LogsForObject func(object, options runtime.Object) (*kclient.Request, error) NoStdin bool ForceTTY bool DisableTTY bool Filename string Timeout time.Duration Command []string Annotations map[string]string AsRoot bool KeepLabels bool // TODO: evaluate selecting the right labels automatically KeepAnnotations bool KeepLiveness bool KeepReadiness 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 DeployOptions ¶
type DeployOptions struct {
// contains filtered or unexported fields
}
DeployOptions holds all the options for the `deploy` command
func (DeployOptions) RunDeploy ¶
func (o DeployOptions) RunDeploy() error
func (DeployOptions) Validate ¶
func (o DeployOptions) Validate() error
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 // contains filtered or unexported fields }
ImageImportOptions contains all the necessary information to perform an import.
func (*ImportImageOptions) Complete ¶ added in v1.1.4
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 LoginOptions ¶
type LoginOptions struct { Server string CAFile string InsecureTLS bool APIVersion unversioned.GroupVersion // flags and printing helpers Username string Password string Project string // infra StartingKubeConfig *kclientcmdapi.Config DefaultNamespace string Config *kclient.Config Reader io.Reader Out io.Writer // cert data to be used when authenticating CertFile string KeyFile string Token string PathOptions *kcmdconfig.PathOptions }
LoginOptions is a helper for the login and setup process, gathers all information required for a successful login and eventual update of config files. Depending on the Reader present it can be interactive, asking for terminal input in case of any missing information. Notice that some methods mutate this object so it should not be reused. The Config provided as a pointer will also mutate (handle new auth tokens, etc).
func (*LoginOptions) Complete ¶
func (o *LoginOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error
func (*LoginOptions) GatherInfo ¶
func (o *LoginOptions) GatherInfo() error
Gather all required information in a comprehensive order.
func (*LoginOptions) SaveConfig ¶
func (o *LoginOptions) SaveConfig() (bool, error)
Save all the information present in this helper to a config file. An explicit config file path can be provided, if not use the established conventions about config loading rules. Will create a new config file if one can't be found at all. Will only succeed if all required info is present.
type LogoutOptions ¶
type LogoutOptions struct { StartingKubeConfig *kclientcmdapi.Config Config *kclient.Config Out io.Writer PathOptions *kcmdconfig.PathOptions }
func (*LogoutOptions) Complete ¶
func (o *LogoutOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error
func (LogoutOptions) RunLogout ¶
func (o LogoutOptions) RunLogout() error
func (LogoutOptions) Validate ¶
func (o LogoutOptions) Validate(args []string) error
type NewProjectOptions ¶
type NewProjectOptions struct { ProjectName string DisplayName string Description string Name string Client client.Interface ProjectOptions *ProjectOptions Out io.Writer }
func (*NewProjectOptions) Run ¶
func (o *NewProjectOptions) Run() error
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, out io.Writer, cmd *cobra.Command, args []string) 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 ¶
type ProjectOptions struct { Config clientcmdapi.Config Client *client.Client ClientConfig *kclient.Config Out io.Writer PathOptions *kubecmdconfig.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) RunProject ¶
func (o ProjectOptions) RunProject() error
RunProject contains all the necessary functionality for the OpenShift cli project command
func (ProjectOptions) Validate ¶
func (o ProjectOptions) Validate() error
type RollbackOptions ¶ added in v1.0.2
type RollbackOptions struct { Namespace string TargetName string DesiredVersion int 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 *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 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, 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 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) RunTag ¶ added in v1.0.7
func (o TagOptions) RunTag() error
RunTag 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 WatchConditionFunc ¶ added in v1.1.4
WatchConditionFunc returns true if the condition has been reached, false if it has not been reached yet, or an error if the condition cannot be checked and should terminate.
func PodContainerRunning ¶ added in v1.1.4
func PodContainerRunning(containerName string) WatchConditionFunc
PodContainerRunning returns false until the named container has ContainerStatus running (at least once), and will return an error if the pod is deleted, runs to completion, or the container pod is not available.
type WhoAmIOptions ¶
type WhoAmIOptions struct { UserInterface osclient.UserInterface Out io.Writer }
Source Files ¶
- buildlogs.go
- cancelbuild.go
- config.go
- create_route.go
- debug.go
- deploy.go
- export.go
- exporter.go
- expose.go
- helper.go
- importimage.go
- login.go
- loginoptions.go
- logout.go
- logs.go
- newapp.go
- newbuild.go
- options.go
- process.go
- project.go
- request_project.go
- rollback.go
- rsh.go
- startbuild.go
- status.go
- tag.go
- types.go
- whoami.go
- wrappers.go