Versions in this module Expand all Collapse all v4 v4.1.0 May 1, 2019 Changes in this version + const GenerationWarningAnnotation + var ErrNameRequired = fmt.Errorf("you must specify a name for your app") + func AllContainerPorts(containers ...corev1.Container) []corev1.ContainerPort + func CloneAndCheckoutSources(repo git.Repository, remote, ref, localDir, contextDir string) (string, error) + func ContainerPortsFromString(portString string) ([]corev1.ContainerPort, error) + func GenerateSecret(n int) string + func GenerateService(meta metav1.ObjectMeta, selector map[string]string) *corev1.Service + func IsBuilderImage(image *dockerv10.DockerImage) bool + func IsBuilderMatch(match *ComponentMatch) bool + func IsBuilderStreamTag(stream *imagev1.ImageStream, tag string) bool + func IsComponentReference(s string) error + func IsDirectory(name string) (bool, error) + func IsParameterizableValue(s string) bool + func IsPossibleTemplateFile(value string) (bool, error) + func IsRemoteRepository(s string) (bool, error) + func JoinEnvironment(a, b []corev1.EnvVar) (out []corev1.EnvVar) + func LabelsFromSpec(spec []string) (map[string]string, []string, error) + func MakeSimpleName(name string) string + func StrategyAndSourceForRepository(repo *SourceRepository, image *ImageRef) (*BuildStrategyRef, *SourceRef, error) + func UniqueContainerToServicePorts(ports []corev1.ContainerPort) []corev1.ServicePort + type Acceptor interface + Accept func(from interface{}) bool + var AcceptAll Acceptor = acceptAll{} + var AcceptNew Acceptor = acceptNew{} + func NewAcceptBuildConfigs(typer runtime.ObjectTyper) Acceptor + func NewAcceptFirst() Acceptor + func NewAcceptNonExistentImageStream(typer runtime.ObjectTyper, getter imagev1typedclient.ImageV1Interface, ...) Acceptor + func NewAcceptNonExistentImageStreamTag(typer runtime.ObjectTyper, getter imagev1typedclient.ImageV1Interface, ...) Acceptor + func NewAcceptUnique(typer runtime.ObjectTyper) Acceptor + type Acceptors []Acceptor + func (aa Acceptors) Accept(from interface{}) bool + type BuildRef struct + Binary bool + DockerStrategyOptions *buildv1.DockerStrategyOptions + Env Environment + Input *ImageRef + Output *ImageRef + Source *SourceRef + Strategy *BuildStrategyRef + func (r *BuildRef) BuildConfig() (*buildv1.BuildConfig, error) + type BuildStrategyRef struct + Base *ImageRef + Strategy newapp.Strategy + func (s *BuildStrategyRef) BuildStrategy(env Environment, dockerStrategyOptions *buildv1.DockerStrategyOptions) (*buildv1.BuildStrategy, []buildv1.BuildTriggerPolicy) + type CircularOutputReferenceError struct + Reference string + func (e CircularOutputReferenceError) Error() string + type CircularReferenceError struct + Reference string + func (e CircularReferenceError) Error() string + type ComponentInput struct + Argument string + ExpectToBuild bool + From string + GroupID int + ResolvedMatch *ComponentMatch + ScratchImage bool + SearchMatches ComponentMatches + Uses *SourceRepository + Value string + func NewComponentInput(input string) (*ComponentInput, string, error) + func (i *ComponentInput) Input() *ComponentInput + func (i *ComponentInput) NeedsSource() bool + func (i *ComponentInput) Resolve() error + func (i *ComponentInput) Search() error + func (i *ComponentInput) String() string + func (i *ComponentInput) Use(repo *SourceRepository) + type ComponentMatch struct + Argument string + Builder bool + Description string + DockerImage *dockerv10.DockerImage + GeneratorInput GeneratorInput + ImageStream *imagev1.ImageStream + ImageTag string + Insecure bool + LocalOnly bool + Meta map[string]string + Name string + NoTagsFound bool + Score float32 + Template *templatev1.Template + Value string + Virtual bool + func (m *ComponentMatch) Exact() bool + func (m *ComponentMatch) IsImage() bool + func (m *ComponentMatch) IsTemplate() bool + func (m *ComponentMatch) String() string + type ComponentMatches []*ComponentMatch + func (m ComponentMatches) Exact() ComponentMatches + func (m ComponentMatches) Inexact() ComponentMatches + type ComponentReference interface + Input func() *ComponentInput + NeedsSource func() bool + Resolve func() error + Search func() error + type ComponentReferences []ComponentReference + func (components ComponentReferences) Resolve() error + func (components ComponentReferences) Search() error + func (r ComponentReferences) Group() (refs []ComponentReferences) + func (r ComponentReferences) HasSource() bool + func (r ComponentReferences) HumanString(separator string) string + func (r ComponentReferences) ImageComponentRefs() (refs ComponentReferences) + func (r ComponentReferences) InstallableComponentRefs() (refs ComponentReferences) + func (r ComponentReferences) NeedsSource() (refs ComponentReferences) + func (r ComponentReferences) String() string + func (r ComponentReferences) TemplateComponentRefs() (refs ComponentReferences) + func (r ComponentReferences) UseSource() (refs ComponentReferences) + type DeploymentConfigRef struct + AsTest bool + Env Environment + Images []*ImageRef + Labels map[string]string + Name string + PostHook *DeploymentHook + func (r *DeploymentConfigRef) DeploymentConfig() (*appsv1.DeploymentConfig, error) + type DeploymentHook struct + Shell string + type Detector interface + Detect func(dir string, dockerStrategy bool) (*SourceRepositoryInfo, error) + type DockerClient interface + InspectImage func(name string) (*docker.Image, error) + ListImages func(opts docker.ListImagesOptions) ([]docker.APIImages, error) + type DockerClientSearcher struct + AllowMissingImages bool + Client DockerClient + Insecure bool + RegistrySearcher Searcher + func (r DockerClientSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r DockerClientSearcher) Type() string + type DockerRegistrySearcher struct + AllowInsecure bool + Client dockerregistry.Client + func (r DockerRegistrySearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r DockerRegistrySearcher) Type() string + type Dockerfile interface + AST func() *parser.Node + Contents func() string + func NewDockerfile(contents string) (Dockerfile, error) + func NewDockerfileFromFile(path string) (Dockerfile, error) + type Environment map[string]string + func LoadEnvironmentFile(filename string, stdin io.Reader) (Environment, error) + func NewEnvironment(envs ...map[string]string) Environment + func ParseAndCombineEnvironment(envs []string, filenames []string, stdin io.Reader, ...) (Environment, error) + func ParseEnvironment(vals ...string) (Environment, []string, []error) + func ParseEnvironmentAllowEmpty(vals ...string) Environment + func (e Environment) Add(envs ...map[string]string) + func (e Environment) AddIfNotPresent(more Environment) []string + func (e Environment) List() []corev1.EnvVar + type ErrMultipleMatches struct + Errs []error + Matches []*ComponentMatch + Value string + func (e ErrMultipleMatches) Error() string + type ErrNoMatch struct + Errs []error + Qualifier string + Type string + Value string + func (e ErrNoMatch) Error() string + func (e ErrNoMatch) Suggestion(commandName string) string + type ErrNoTagsFound struct + Errs []error + Match *ComponentMatch + Value string + func (e ErrNoTagsFound) Error() string + func (e ErrNoTagsFound) Suggestion(commandName string) string + type ErrPartialMatch struct + Errs []error + Match *ComponentMatch + Value string + func (e ErrPartialMatch) Error() string + func (e ErrPartialMatch) Suggestion(commandName string) string + type FirstMatchResolver struct + Searcher Searcher + func (r FirstMatchResolver) Resolve(value string) (*ComponentMatch, error) + type Generated struct + Items []runtime.Object + func (g *Generated) WithType(slicePtr interface{}) bool + type GeneratorInput struct + Job bool + Token *TokenInput + func GeneratorInputFromMatch(match *ComponentMatch) (GeneratorInput, error) + type GeneratorJobReference struct + Err error + Input GeneratorInput + Ref ComponentReference + type GroupedComponentReferences ComponentReferences + func (m GroupedComponentReferences) Len() int + func (m GroupedComponentReferences) Less(i, j int) bool + func (m GroupedComponentReferences) Swap(i, j int) + type HighestScoreResolver struct + Searcher Searcher + func (r HighestScoreResolver) Resolve(value string) (*ComponentMatch, error) + type HighestUniqueScoreResolver struct + Searcher Searcher + func (r HighestUniqueScoreResolver) Resolve(value string) (*ComponentMatch, error) + type ImageImportSearcher struct + AllowInsecure bool + Client imagev1client.ImageStreamImportInterface + Fallback Searcher + func (s ImageImportSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (s ImageImportSearcher) Type() string + type ImageRef struct + AsImageStream bool + AsResolvedImage bool + ContainerFn func(*corev1.Container) + Env Environment + HasEmptyDir bool + Info *dockerv10.DockerImage + Insecure bool + InternalDefaultTag string + ObjectName string + OutputImage bool + Reference imageapi.DockerImageReference + ResolvedReference *imageapi.DockerImageReference + Stream *imagev1.ImageStream + Tag string + TagDirectly bool + func InputImageFromMatch(match *ComponentMatch) (*ImageRef, error) + func (r *ImageRef) BuildOutput() (*buildv1.BuildOutput, error) + func (r *ImageRef) BuildTriggers() []buildv1.BuildTriggerPolicy + func (r *ImageRef) DeployableContainer() (container *corev1.Container, triggers []appsv1.DeploymentTriggerPolicy, ...) + func (r *ImageRef) Exists() bool + func (r *ImageRef) ImageStream() (*imagev1.ImageStream, error) + func (r *ImageRef) ImageStreamTag() (*imagev1.ImageStreamTag, error) + func (r *ImageRef) InstallablePod(generatorInput GeneratorInput, secretAccessor SecretAccessor, ...) (*corev1.Pod, *corev1.Secret, error) + func (r *ImageRef) InternalTag() string + func (r *ImageRef) ObjectReference() corev1.ObjectReference + func (r *ImageRef) PullSpec() string + func (r *ImageRef) RepoName() string + func (r *ImageRef) SuggestName() (string, bool) + func (r *ImageRef) SuggestNamespace() string + type ImageRefGenerator interface + FromDockerfile func(name string, dir string, context string) (*ImageRef, error) + FromName func(name string) (*ImageRef, error) + FromNameAndPorts func(name string, ports []string) (*ImageRef, error) + FromStream func(repo *imagev1.ImageStream, tag string) (*ImageRef, error) + func NewImageRefGenerator() ImageRefGenerator + type ImageStreamByAnnotationSearcher struct + Client imagev1typedclient.ImageStreamsGetter + ImageStreamImages imagev1typedclient.ImageStreamImagesGetter + Namespaces []string + func (r *ImageStreamByAnnotationSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r *ImageStreamByAnnotationSearcher) Type() string + type ImageStreamSearcher struct + AllowMissingTags bool + Client imagev1typedclient.ImageV1Interface + Namespaces []string + func (r ImageStreamSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r ImageStreamSearcher) Type() string + type MissingImageSearcher struct + func (r MissingImageSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r MissingImageSearcher) Type() string + type MultiSimpleSearcher []Searcher + func (s MultiSimpleSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (s MultiSimpleSearcher) Type() string + type MultiWeightedSearcher []WeightedSearcher + func (s MultiWeightedSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (s MultiWeightedSearcher) Type() string + type NameSuggester interface + SuggestName func() (string, bool) + type NameSuggestions []NameSuggester + func (s NameSuggestions) SuggestName() (string, bool) + type Objects []runtime.Object + func AddRoutes(objects Objects) Objects + func AddServices(objects Objects, firstPortOnly bool) Objects + type PerfectMatchWeightedResolver []WeightedResolver + func (r PerfectMatchWeightedResolver) Resolve(value string) (*ComponentMatch, error) + type Pipeline struct + Build *BuildRef + Deployment *DeploymentConfigRef + From string + Image *ImageRef + InputImage *ImageRef + Labels map[string]string + Name string + func (p *Pipeline) NeedsDeployment(env Environment, labels map[string]string, asTest bool) error + func (p *Pipeline) Objects(accept, objectAccept Acceptor) (Objects, error) + type PipelineBuilder interface + NewBuildPipeline func(string, *ImageRef, *SourceRepository, bool) (*Pipeline, error) + NewImagePipeline func(string, *ImageRef) (*Pipeline, error) + To func(string) PipelineBuilder + func NewPipelineBuilder(name string, environment Environment, ...) PipelineBuilder + type PipelineGroup []*Pipeline + func (g PipelineGroup) Reduce() error + func (g PipelineGroup) String() string + type PipelineResolver struct + func (r PipelineResolver) Resolve(value string) (*ComponentMatch, error) + type ReferenceBuilder struct + func (r *ReferenceBuilder) AddComponents(inputs []string, fn func(*ComponentInput) ComponentReference) ComponentReferences + func (r *ReferenceBuilder) AddExistingSourceRepository(source *SourceRepository) + func (r *ReferenceBuilder) AddGroups(inputs []string) + func (r *ReferenceBuilder) AddSourceRepository(input string, strategy newapp.Strategy) (*SourceRepository, bool) + func (r *ReferenceBuilder) Result() (ComponentReferences, SourceRepositories, []error) + type Resolver interface + Resolve func(value string) (*ComponentMatch, error) + type ScoredComponentMatches []*ComponentMatch + func (m ScoredComponentMatches) Exact() []*ComponentMatch + func (m ScoredComponentMatches) Len() int + func (m ScoredComponentMatches) Less(i, j int) bool + func (m ScoredComponentMatches) Swap(i, j int) + type Searcher interface + Search func(precise bool, terms ...string) (ComponentMatches, []error) + Type func() string + func NewImageStreamByAnnotationSearcher(streamClient imagev1typedclient.ImageStreamsGetter, ...) Searcher + type SecretAccessor interface + CACert func() (string, error) + Token func() (string, error) + type SourceLanguageType struct + Platform string + Version string + func (t *SourceLanguageType) Term() string + type SourceRef struct + Binary bool + ConfigMaps []buildv1.ConfigMapBuildSource + ContextDir string + Dir string + DockerfileContents string + ImageDestPath string + ImageSourcePath string + Name string + RequiresAuth bool + Secrets []buildv1.SecretBuildSource + SourceImage *ImageRef + URL *s2igit.URL + func (r *SourceRef) BuildSource() (*buildv1.BuildSource, []buildv1.BuildTriggerPolicy) + func (r *SourceRef) SuggestName() (string, bool) + type SourceRepositories []*SourceRepository + func (rr SourceRepositories) NotUsed() SourceRepositories + func (rr SourceRepositories) String() string + type SourceRepository struct + func NewBinarySourceRepository(strategy newapp.Strategy) *SourceRepository + func NewImageSourceRepository(compRef ComponentReference, from, to string) *SourceRepository + func NewSourceRepository(s string, strategy newapp.Strategy) (*SourceRepository, error) + func NewSourceRepositoryForDockerfile(contents string) (*SourceRepository, error) + func NewSourceRepositoryWithDockerfile(s, dockerfilePath string) (*SourceRepository, error) + func (r *SourceRepository) AddBuildConfigMaps(configMaps []string) error + func (r *SourceRepository) AddBuildSecrets(secrets []string) error + func (r *SourceRepository) AddDockerfile(contents string) error + func (r *SourceRepository) ConfigMaps() []buildv1.ConfigMapBuildSource + func (r *SourceRepository) ContextDir() string + func (r *SourceRepository) Detect(d Detector, dockerStrategy bool) error + func (r *SourceRepository) DetectAuth() error + func (r *SourceRepository) GetStrategy() newapp.Strategy + func (r *SourceRepository) InUse() bool + func (r *SourceRepository) Info() *SourceRepositoryInfo + func (r *SourceRepository) LocalPath() (string, error) + func (r *SourceRepository) Remote() bool + func (r *SourceRepository) RemoteURL() (*s2igit.URL, bool, error) + func (r *SourceRepository) Secrets() []buildv1.SecretBuildSource + func (r *SourceRepository) SetContextDir(dir string) + func (r *SourceRepository) SetInfo(info *SourceRepositoryInfo) + func (r *SourceRepository) SetSourceImage(c ComponentReference) + func (r *SourceRepository) SetSourceImagePath(source, dest string) + func (r *SourceRepository) SetStrategy(strategy newapp.Strategy) + func (r *SourceRepository) String() string + func (r *SourceRepository) UsedBy(ref ComponentReference) + type SourceRepositoryEnumerator struct + Detectors source.Detectors + DockerfileTester newapp.Tester + JenkinsfileTester newapp.Tester + func (e SourceRepositoryEnumerator) Detect(dir string, noSourceDetection bool) (*SourceRepositoryInfo, error) + type SourceRepositoryInfo struct + Dockerfile Dockerfile + Jenkinsfile bool + Path string + Types []SourceLanguageType + func (info *SourceRepositoryInfo) Terms() []string + type TemplateFileSearcher struct + Builder *resource.Builder + Namespace string + func (r *TemplateFileSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r *TemplateFileSearcher) Type() string + type TemplateSearcher struct + Client templatev1typedclient.TemplatesGetter + Namespaces []string + StopOnExactMatch bool + func (r TemplateSearcher) Search(precise bool, terms ...string) (ComponentMatches, []error) + func (r TemplateSearcher) Type() string + type TokenInput struct + Env *string + File *string + ServiceAccount bool + type UniqueExactOrInexactMatchResolver struct + Searcher Searcher + func (r UniqueExactOrInexactMatchResolver) Resolve(value string) (*ComponentMatch, error) + type UniqueNameGenerator interface + Generate func(NameSuggester) (string, error) + func NewUniqueNameGenerator(name string) UniqueNameGenerator + type WeightedResolver struct + Weight float32 + type WeightedSearcher struct + Weight float32 v4.0.0-alpha.0 Sep 13, 2018 Other modules containing this package gopkg.in/openshift/origin.v3