Documentation
¶
Index ¶
- Variables
- type AppConfig
- func (c *AppConfig) AddArguments(args []string) []string
- func (c *AppConfig) HasArguments() bool
- func (c *AppConfig) Querying() bool
- func (c *AppConfig) RunAll(out, errOut io.Writer) (*AppResult, error)
- func (c *AppConfig) RunBuilds(out, errOut io.Writer) (*AppResult, error)
- func (c *AppConfig) RunQuery(out, errOut io.Writer) (*QueryResult, error)
- func (c *AppConfig) SetDockerClient(dockerclient *docker.Client)
- func (c *AppConfig) SetOpenShiftClient(osclient client.Interface, originNamespace string)
- type AppResult
- type QueryResult
- type UsageError
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
ContextDir string
Components util.StringList
ImageStreams util.StringList
DockerImages util.StringList
Templates util.StringList
TemplateFiles util.StringList
TemplateParameters util.StringList
Groups util.StringList
Environment util.StringList
Labels map[string]string
Name string
Strategy string
InsecureRegistry bool
OutputDocker bool
AsSearch bool
AsList bool
// contains filtered or unexported fields
}
AppConfig contains all the necessary configuration for an application
func NewAppConfig ¶
func NewAppConfig(typer runtime.ObjectTyper, mapper meta.RESTMapper, clientMapper resource.ClientMapper) *AppConfig
NewAppConfig returns a new AppConfig
func (*AppConfig) AddArguments ¶
AddArguments converts command line arguments into the appropriate bucket based on what they look like
func (*AppConfig) HasArguments ¶ added in v1.0.5
func (*AppConfig) RunQuery ¶ added in v1.0.5
func (c *AppConfig) RunQuery(out, errOut io.Writer) (*QueryResult, error)
RunQuery executes the provided config and returns the result of the resolution.
func (*AppConfig) SetDockerClient ¶
func (c *AppConfig) SetDockerClient(dockerclient *docker.Client)
SetDockerClient sets the passed Docker client in the application configuration
type AppResult ¶
type AppResult struct {
List *kapi.List
Name string
BuildNames []string
HasSource bool
Namespace string
}
AppResult contains the results of an application
type QueryResult ¶ added in v1.0.5
type QueryResult struct {
Matches app.ComponentMatches
List *kapi.List
}
QueryResult contains the results of a query (search or list)
type UsageError ¶
UsageError is an interface for printing usage errors
Click to show internal directories.
Click to hide internal directories.