cmd

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2015 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBuildLogs

func NewCmdBuildLogs(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdBuildLogs implements the OpenShift cli build-logs command

func NewCmdCancelBuild

func NewCmdCancelBuild(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdCancelBuild implements the OpenShift cli cancel-build command

func NewCmdConfig added in v0.4.4

func NewCmdConfig(parentName, name string) *cobra.Command

func NewCmdCreate added in v0.3.4

func NewCmdCreate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdCreate is a wrapper for the Kubernetes cli create command

func NewCmdDelete added in v0.3.4

func NewCmdDelete(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdDelete is a wrapper for the Kubernetes cli delete command

func NewCmdDeploy added in v0.5.1

func NewCmdDeploy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdDeploy creates a new `deploy` command.

func NewCmdDescribe added in v0.4.3

func NewCmdDescribe(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdDescribe is a wrapper for the Kubernetes cli describe command

func NewCmdEdit added in v0.4.4

func NewCmdEdit(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCmdEnv added in v0.5.1

func NewCmdEnv(fullName string, f *clientcmd.Factory, in io.Reader, out io.Writer) *cobra.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 NewCmdGet added in v0.3.4

func NewCmdGet(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdGet is a wrapper for the Kubernetes cli get command

func NewCmdLabel added in v0.5.2

func NewCmdLabel(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdLabel is a wrapper for the Kubernetes cli label command

func NewCmdLog added in v0.3.4

func NewCmdLog(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdLog is a wrapper for the Kubernetes cli log command

func NewCmdLogin added in v0.4.2

func NewCmdLogin(fullName string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

NewCmdLogin implements the OpenShift cli login command

func NewCmdLogout added in v0.5.1

func NewCmdLogout(name, fullName, oscLoginFullCommand string, f *osclientcmd.Factory, reader io.Reader, out io.Writer) *cobra.Command

NewCmdLogout implements the OpenShift cli logout command

func NewCmdNewApplication added in v0.3.1

func NewCmdNewApplication(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdNewApplication implements the OpenShift cli new-app command

func NewCmdOptions added in v0.3.1

func NewCmdOptions(out io.Writer) *cobra.Command

NewCmdOptions implements the OpenShift cli options command

func NewCmdPortForward added in v0.4.2

func NewCmdPortForward(fullName string, f *clientcmd.Factory) *cobra.Command

NewCmdPortForward is a wrapper for the Kubernetes cli port-forward command

func NewCmdProcess

func NewCmdProcess(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdProcess implements the OpenShift cli process command

func NewCmdProject added in v0.4.2

func NewCmdProject(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdProject implements the OpenShift cli rollback command

func NewCmdProxy added in v0.4.3

func NewCmdProxy(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdProxy is a wrapper for the Kubernetes cli proxy command

func NewCmdRequestProject added in v0.4.4

func NewCmdRequestProject(name, fullName, oscLoginName, oscProjectName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCmdResize added in v0.5.2

func NewCmdResize(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdResize is a wrapper for the Kubernetes cli resize command

func NewCmdRollback added in v0.2.2

func NewCmdRollback(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdRollback implements the OpenShift cli rollback command

func NewCmdStartBuild

func NewCmdStartBuild(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdStartBuild implements the OpenShift cli start-build command

func NewCmdStatus added in v0.4.3

func NewCmdStatus(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdStatus implements the OpenShift cli status command

func NewCmdStop added in v0.5.2

func NewCmdStop(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdStop is a wrapper for the Kubernetes cli stop command

func NewCmdUpdate added in v0.3.4

func NewCmdUpdate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

NewCmdUpdate is a wrapper for the Kubernetes cli update command

func RunBuildLogs added in v0.4.3

func RunBuildLogs(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 added in v0.4.3

func RunCancelBuild(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error

RunCancelBuild contains all the necessary functionality for the OpenShift cli cancel-build command

func RunEdit added in v0.4.4

func RunEdit(fullName string, f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, filenames util.StringList) error

func RunEnv added in v0.5.1

func RunEnv(f *clientcmd.Factory, in io.Reader, out io.Writer, cmd *cobra.Command, args []string, envParams, filenames util.StringList) error

func RunListBuildWebHooks added in v0.5.1

func RunListBuildWebHooks(f *clientcmd.Factory, out, errOut io.Writer, name string, isBuild bool, webhookFilter string) error

RunListBuildWebHooks prints the webhooks for the provided build config.

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) error

RunNewApplication contains all the necessary functionality for the OpenShift cli new-app command

func RunProcess added in v0.4.3

func RunProcess(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string) error

RunProject contains all the necessary functionality for the OpenShift cli process 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

func RunStartBuild(f *clientcmd.Factory, out io.Writer, cmd *cobra.Command, args []string, webhooks util.StringFlag) error

RunStartBuild contains all the necessary functionality for the OpenShift cli start-build command

func RunStartBuildWebHook added in v0.5.1

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 RunStatus added in v0.4.3

func RunStatus(f *clientcmd.Factory, out io.Writer) error

RunStatus contains all the necessary functionality for the OpenShift cli status command

Types

type DeployOptions added in v0.5.2

type DeployOptions struct {
	// contains filtered or unexported fields
}

func (*DeployOptions) Complete added in v0.5.2

func (o *DeployOptions) Complete(f *clientcmd.Factory, args []string, out io.Writer) error

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(args []string) error

type LoginOptions added in v0.4.2

type LoginOptions struct {
	Server string

	// 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
	CAFile      string
	CertFile    string
	KeyFile     string
	InsecureTLS bool

	Token string

	PathOptions *kcmdconfig.PathOptions
}

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 added in v0.5.1

func (o *LoginOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error

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.

func (LoginOptions) Validate added in v0.5.1

func (o LoginOptions) Validate(args []string, serverFlag string) error

type LogoutOptions added in v0.5.1

type LogoutOptions struct {
	StartingKubeConfig *kclientcmdapi.Config
	Config             *kclient.Config
	Out                io.Writer

	PathOptions *kcmdconfig.PathOptions
}

func (*LogoutOptions) Complete added in v0.5.1

func (o *LogoutOptions) Complete(f *osclientcmd.Factory, cmd *cobra.Command, args []string) error

func (LogoutOptions) RunLogout added in v0.5.1

func (o LogoutOptions) RunLogout() error

func (LogoutOptions) Validate added in v0.5.1

func (o LogoutOptions) Validate(args []string) error

type NewProjectOptions added in v0.4.4

type NewProjectOptions struct {
	ProjectName  string
	DisplayName  string
	Description  string
	NodeSelector string

	Client client.Interface

	ProjectOptions *ProjectOptions
	Out            io.Writer
}

func (*NewProjectOptions) Run added in v0.4.4

func (o *NewProjectOptions) Run() error

type ProjectOptions added in v0.5.1

type ProjectOptions struct {
	Config       clientcmdapi.Config
	Client       *client.Client
	ClientConfig *kclient.Config
	Out          io.Writer
	PathOptions  *kubecmdconfig.PathOptions

	ProjectName string
	ProjectOnly bool
}

func (*ProjectOptions) Complete added in v0.5.1

func (o *ProjectOptions) Complete(f *clientcmd.Factory, args []string, out io.Writer) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL