Documentation ¶
Index ¶
- 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 NewCmdCreate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdDelete(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 NewCmdGet(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLog(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdLogin(f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command
- func NewCmdNewApplication(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdOptions(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(f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdProxy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdRequestProject(name, fullName, oscLoginName, oscProjectName string, f *clientcmd.Factory, ...) *cobra.Command
- func NewCmdRollback(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdStartBuild(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdStatus(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCmdUpdate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func RunBuildLogs(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunCancelBuild(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunEdit(fullName string, f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, ...) error
- func RunLogin(cmd *cobra.Command, options *LoginOptions) error
- func RunNewApplication(f *clientcmd.Factory, out io.Writer, c *cobra.Command, args []string, ...) error
- func RunProcess(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunProject(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunRollback(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, ...) error
- func RunStartBuild(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error
- func RunStatus(f *clientcmd.Factory, out io.Writer) error
- type LoginOptions
- type NewProjectOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdBuildLogs ¶
NewCmdBuildLogs implements the OpenShift cli build-logs command
func NewCmdCancelBuild ¶
NewCmdCancelBuild implements the OpenShift cli cancel-build command
func NewCmdConfig ¶ added in v0.4.4
func NewCmdCreate ¶ added in v0.3.4
NewCmdCreate is a wrapper for the Kubernetes cli create command
func NewCmdDelete ¶ added in v0.3.4
NewCmdDelete is a wrapper for the Kubernetes cli delete 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
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 NewCmdLogin ¶ added in v0.4.2
NewCmdLogin implements the OpenShift cli login command
func NewCmdNewApplication ¶ added in v0.3.1
NewCmdNewApplication implements the OpenShift cli new-app command
func NewCmdOptions ¶ added in v0.3.1
NewCmdOptions implements the OpenShift cli options command
func NewCmdPortForward ¶ added in v0.4.2
NewCmdPortForward is a wrapper for the Kubernetes cli port-forward command
func NewCmdProcess ¶
NewCmdProcess implements the OpenShift cli process command
func NewCmdProject ¶ added in v0.4.2
NewCmdProject implements the OpenShift cli rollback command
func NewCmdProxy ¶ added in v0.4.3
NewCmdProxy is a wrapper for the Kubernetes cli proxy command
func NewCmdRequestProject ¶ added in v0.4.4
func NewCmdRollback ¶ added in v0.2.2
NewCmdRollback implements the OpenShift cli rollback command
func NewCmdStartBuild ¶
NewCmdStartBuild implements the OpenShift cli start-build command
func NewCmdStatus ¶ added in v0.4.3
NewCmdStatus implements the OpenShift cli status command
func NewCmdUpdate ¶ added in v0.3.4
NewCmdUpdate is a wrapper for the Kubernetes cli update command
func RunBuildLogs ¶ added in v0.4.3
RunBuildLogs contains all the necessary functionality for the OpenShift cli build-logs command
func RunCancelBuild ¶ added in v0.4.3
RunCancelBuild contains all the necessary functionality for the OpenShift cli cancel-build command
func RunLogin ¶ added in v0.4.3
func RunLogin(cmd *cobra.Command, options *LoginOptions) error
RunLogin contains all the necessary functionality for the OpenShift cli login command
func RunNewApplication ¶ added in v0.4.3
func RunNewApplication(f *clientcmd.Factory, out io.Writer, c *cobra.Command, args []string, config *newcmd.AppConfig, helper *dockerutil.Helper) error
RunNewApplication contains all the necessary functionality for the OpenShift cli new-app command
func RunProcess ¶ added in v0.4.3
RunProject contains all the necessary functionality for the OpenShift cli process command
func RunProject ¶ added in v0.4.3
RunProject contains all the necessary functionality for the OpenShift cli project command
func RunRollback ¶ added in v0.4.3
func RunRollback(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, rollback *deployapi.DeploymentConfigRollback) error
RunRollback contains all the necessary functionality for OpenShift cli rollback command
func RunStartBuild ¶ added in v0.4.3
RunStartBuild contains all the necessary functionality for the OpenShift cli start-build command
Types ¶
type LoginOptions ¶ added in v0.4.2
type LoginOptions struct { // flags and printing helpers Username string Password string Project string // infra ClientConfig kclientcmd.ClientConfig Config *kclient.Config Reader io.Reader Out io.Writer // cert data to be used when authenticating CertFile string CertData []byte KeyFile string KeyData []byte // Optional, if provided will only try to save in it PathToSaveConfig string // contains filtered or unexported fields }
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) GatherInfo ¶ added in v0.4.2
func (o *LoginOptions) GatherInfo() error
Gather all required information in a comprehensive order.
func (*LoginOptions) SaveConfig ¶ added in v0.4.2
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.