cmd

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: Apache-2.0 Imports: 38 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

func NewCmdCancelBuild

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

NewCmdCancelBuild manages a build cancelling event. To cancel a build its name has to be specified, and two options are available: displaying logs and restarting.

func NewCmdCreate added in v0.3.4

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

func NewCmdDelete added in v0.3.4

func NewCmdDelete(fullName string, f *clientcmd.Factory, 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

func NewCmdGet added in v0.3.4

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

func NewCmdLog added in v0.3.4

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

func NewCmdLogin added in v0.4.2

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

func NewCmdNewApplication added in v0.3.1

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

func NewCmdOptions added in v0.3.1

func NewCmdOptions(f *clientcmd.Factory, out io.Writer) *cobra.Command

func NewCmdPortForward added in v0.4.2

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

func NewCmdProcess

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

NewCmdProcess returns a 'process' command

func NewCmdProject added in v0.4.2

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

func NewCmdRollback added in v0.2.2

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

func NewCmdStartBuild

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

func NewCmdUpdate added in v0.3.4

func NewCmdUpdate(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.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

	// 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() (created bool, err 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.

Jump to

Keyboard shortcuts

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