Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2018 Changes in this version + const GeneratedByNamespace + const GeneratedByNewApp + const GeneratedByNewBuild + const GeneratedForJob + const GeneratedForJobFor + var ErrNoInputs = errors.New("no inputs provided") + func AddComponentInputsToRefBuilder(b *app.ReferenceBuilder, r *Resolvers, c *ComponentInputs, g *GenerationInputs, ...) error + func AddDockerfileToSourceRepositories(b *app.ReferenceBuilder, dockerfile string) error + func AddImageSourceRepository(sourceRepos app.SourceRepositories, r app.Resolver, g *GenerationInputs) (app.ComponentReference, app.SourceRepositories, error) + func AddMissingComponentsToRefBuilder(b *app.ReferenceBuilder, repositories app.SourceRepositories, ...) (app.ComponentReferences, error) + func AddSourceRepositoriesToRefBuilder(b *app.ReferenceBuilder, c *ComponentInputs, g *GenerationInputs, ...) (app.SourceRepositories, error) + func DescribeGeneratedTemplate(out io.Writer, input string, result *templateapi.Template, ...) + func DetectSource(repositories []*app.SourceRepository, d app.Detector, g *GenerationInputs) error + func EnsureHasSource(components app.ComponentReferences, repositories app.SourceRepositories, ...) error + func InferBuildTypes(components app.ComponentReferences, g *GenerationInputs) (app.ComponentReferences, error) + func TransformTemplate(tpl *templateapi.Template, ...) (*templateapi.Template, error) + type AppConfig struct + AllowSecretUse bool + AsList bool + AsSearch bool + Builder *resource.Builder + ClassificationWinners map[string]ArgumentClassificationWinner + ComponentClassificationErrors map[string]ArgumentClassificationError + DiscoveryClient discovery.DiscoveryInterface + DryRun bool + EnvironmentClassificationErrors map[string]ArgumentClassificationError + ErrOut io.Writer + ImageClient imageclient.ImageInterface + In io.Reader + KubeClient kclientset.Interface + Mapper meta.RESTMapper + OriginNamespace string + Out io.Writer + PushSecret string + ResolvedComponents *ResolvedComponents + RouteClient routeclient.RouteInterface + SecretAccessor app.SecretAccessor + SkipGeneration bool + SourceClassificationErrors map[string]ArgumentClassificationError + SourceSecret string + TemplateClassificationErrors map[string]ArgumentClassificationError + TemplateClient templateclient.TemplateInterface + Typer runtime.ObjectTyper + func NewAppConfig() *AppConfig + func (c *AppConfig) AddArguments(args []string) []string + func (c *AppConfig) DockerRegistrySearcher() app.Searcher + func (c *AppConfig) HasArguments() bool + func (c *AppConfig) Querying() bool + func (c *AppConfig) Run() (*AppResult, error) + func (c *AppConfig) RunQuery() (*QueryResult, error) + func (c *AppConfig) SetOpenShiftClient(imageClient imageclient.ImageInterface, ...) + type AppResult struct + GeneratedJobs bool + HasSource bool + List *kapi.List + Name string + Namespace string + type ArgumentClassificationError struct + Key string + Value error + type ArgumentClassificationWinner struct + IncludeGitErrors bool + Name string + Suffix string + func (w *ArgumentClassificationWinner) String() string + type ComponentInputs struct + Components []string + DockerImages []string + Groups []string + ImageStreams []string + SourceRepositories []string + TemplateFiles []string + Templates []string + type ErrRequiresExplicitAccess struct + Input app.GeneratorInput + Match app.ComponentMatch + func (e ErrRequiresExplicitAccess) Error() string + type GenerationInputs struct + AllowGenerationErrors bool + AllowMissingImageStreamTags bool + AsTestDeployment bool + BinaryBuild bool + BuildArgs []string + BuildEnvironment []string + BuildEnvironmentFiles []string + ConfigMaps []string + ContextDir string + Deploy bool + Dockerfile string + Environment []string + EnvironmentFiles []string + ExpectToBuild bool + IgnoreUnknownParameters bool + InsecureRegistry bool + Labels map[string]string + Name string + NoOutput bool + OutputDocker bool + Secrets []string + SourceImage string + SourceImagePath string + Strategy generate.Strategy + TemplateParameterFiles []string + TemplateParameters []string + To string + type QueryResult struct + List *kapi.List + Matches app.ComponentMatches + type ResolvedComponents struct + Components app.ComponentReferences + Repositories app.SourceRepositories + func Resolve(appConfig *AppConfig) (*ResolvedComponents, error) + type Resolvers struct + AllowMissingImages bool + Detector app.Detector + DockerSearcher app.Searcher + ImageStreamByAnnotationSearcher app.Searcher + ImageStreamSearcher app.Searcher + TemplateFileSearcher app.Searcher + TemplateSearcher app.Searcher + func (r *Resolvers) DockerfileResolver() app.Resolver + func (r *Resolvers) ImageSourceResolver() app.Resolver + func (r *Resolvers) PipelineResolver() app.Resolver + func (r *Resolvers) SourceResolver() app.Resolver