cmd

package
v0.0.0-...-6079644 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdApply

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

func NewCmdBuildLogs

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

func NewCmdCancelBuild

func NewCmdCancelBuild(f *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 NewCmdProcess

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

func NewCmdStartBuild

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

Types

type Factory

type Factory struct {
	*kubecmd.Factory
	OpenShiftClientConfig clientcmd.ClientConfig
}

Factory provides common options for OpenShift commands

func NewFactory

func NewFactory(clientConfig clientcmd.ClientConfig) *Factory

NewFactory creates an object that holds common methods across all OpenShift commands

func (*Factory) Clients

func (f *Factory) Clients(cmd *cobra.Command) (*client.Client, *kclient.Client, error)

Clients returns an OpenShift and Kubernetes client.

Jump to

Keyboard shortcuts

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