Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoInputs = fmt.Errorf("no inputs provided")

ErrNoInputs is returned when no inputs are specified

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	SourceRepositories util.StringList

	Components         util.StringList
	ImageStreams       util.StringList
	DockerImages       util.StringList
	Templates          util.StringList
	TemplateParameters util.StringList
	Groups             util.StringList
	Environment        util.StringList

	Name        string
	TypeOfBuild string
	// contains filtered or unexported fields
}

AppConfig contains all the necessary configuration for an application

func NewAppConfig

func NewAppConfig(typer runtime.ObjectTyper) *AppConfig

NewAppConfig returns a new AppConfig

func (*AppConfig) AddArguments

func (c *AppConfig) AddArguments(args []string) []string

AddArguments converts command line arguments into the appropriate bucket based on what they look like

func (*AppConfig) Run

func (c *AppConfig) Run(out io.Writer) (*AppResult, error)

Run executes the provided config.

func (*AppConfig) SetDockerClient

func (c *AppConfig) SetDockerClient(dockerclient *docker.Client)

SetDockerClient sets the passed Docker client in the application configuration

func (*AppConfig) SetOpenShiftClient

func (c *AppConfig) SetOpenShiftClient(osclient client.Interface, originNamespace string)

SetOpenShiftClient sets the passed OpenShift client in the application configuration

type AppResult

type AppResult struct {
	List *kapi.List

	BuildNames []string
	HasSource  bool
}

AppResult contains the results of an application

type UsageError

type UsageError interface {
	UsageError(commandName string) string
}

UsageError is an interface for printing usage errors

Jump to

Keyboard shortcuts

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