Documentation ¶
Index ¶
- func NewCmdBuildLogs(f *Factory, out io.Writer) *cobra.Command
- func NewCmdCancelBuild(f *Factory, out io.Writer) *cobra.Command
- func NewCmdProcess(f *Factory, out io.Writer) *cobra.Command
- func NewCmdRollback(parentName string, name string, f *Factory, out io.Writer) *cobra.Command
- func NewCmdStartBuild(f *Factory, out io.Writer) *cobra.Command
- type Factory
- type ShortcutExpander
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCancelBuild ¶
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 ¶
NewCmdProcess returns a 'process' command
func NewCmdRollback ¶ added in v0.2.2
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
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.
Click to show internal directories.
Click to hide internal directories.