cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2015 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

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

func NewCmdOptions added in v0.3.1

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

func NewCmdProcess

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

NewCmdProcess returns a 'process' command

func NewCmdRollback added in v0.2.2

func NewCmdRollback(parentName string, name string, 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.

type ShortcutExpander added in v0.2.2

type ShortcutExpander struct {
	meta.RESTMapper
}

ShortcutExpander is a RESTMapper that can be used for OpenShift resources.

func (ShortcutExpander) VersionAndKindForResource added in v0.2.2

func (e ShortcutExpander) VersionAndKindForResource(resource string) (defaultVersion, kind string, err error)

VersionAndKindForResource implements meta.RESTMapper. It expands the resource first, then invokes the wrapped mapper.

Jump to

Keyboard shortcuts

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