# Functions
AddRoutes sets up routes for the provided objects.
AddServices sets up services for the provided objects.
BuilderForPlatform expands the provided platform to the respective OpenShift image
TODO: Remove once a real image searcher is implemented.
ContainerPortsFromString extracts sets of port specifications from a comma-delimited string.
InputImageFromMatch returns an image reference from a component match.
IsBuilderImage checks whether the provided Docker image is a builder image or not.
IsComponentReference returns true if the provided string appears to be a reference to a source repository on disk, at a URL, a docker image name (which might be on a Docker registry or an OpenShift image stream), or a template.
IsPossibleSourceRepository checks whether the provided string is a source repository or not.
IsRemoteRepository checks whether the provided string is a remote repository or not.
JoinEnvironment joins two different sets of environment variables into one, leaving out all the duplicates.
LabelsFromSpec turns a set of specs NAME=VALUE or NAME- into a map of labels, a remove label list, or an error.
MockSourceRepositories is a set of mocked source repositories used for testing.
NewAcceptFirst returns a new Acceptor.
NewAcceptUnique creates an acceptor that only accepts unique objects by kind and name.
NewBuildPipeline creates a new pipeline with components that are expected to be built.
NewBuildStrategyRefGenerator creates a BuildStrategyRefGenerator.
NewComponentInput returns a new ComponentInput by checking for image using [image]~ (to indicate builder) or [image]~[code] (builder plus code).
NewEnvironment returns a new set of environment variables based on all the provided environment variables.
NewImagePipeline creates a new pipeline with components that are not expected to be built.
NewImageRefGenerator creates a new ImageRefGenerator.
NewSourceRefGenerator creates a new SourceRefGenerator.
NewSourceRepository creates a reference to a local or remote source code repository from a URL or path.
StrategyAndSourceForRepository returns the build strategy and source code reference of the provided source repository TODO: user should be able to choose whether to download a remote source ref for more info.
# Structs
BuildRef is a reference to a build configuration.
BuildStrategyRef is a reference to a build strategy.
BuildStrategyRefGenerator generates BuildStrategyRef
Flows for BuildStrategyRef SourceRef -> BuildStrategyRef SourceRef + Docker Context -> BuildStrategyRef Docker Context + Parent Image -> BuildStrategyRef STI Builder Image -> BuildStrategyRef.
ComponentInput is the necessary input for creating a component.
ComponentMatch is a match to a provided component.
DeploymentConfigRef is a reference to a deployment configuration.
No description provided by the author
No description provided by the author
ErrMultipleMatches is an error returned to new-app users when multiple matches are found for a given component.
ErrNoMatch is an error returned to new-app users when no match is found for a given component.
Generated is a list of runtime objects.
ImageRef is a reference to an image.
No description provided by the author
No description provided by the author
ReferenceBuilder is used for building all the necessary object references for an application.
SourceLanguageType contains info about the type of the language a source repository is built in.
SourceRef is a reference to a build source.
SourceRefGenerator generates new SourceRefs either from a URL or a Directory
Generators for SourceRef - Git URL -> SourceRef - Directory -> SourceRef.
SourceRepository represents an code repository that may be the target of a build.
SourceRepositoryEnumerator implements the Detector interface.
SourceRepositoryInfo contains info about a source repository.
No description provided by the author
WeightedResolver is a resolver identified as exact or not, depending on its weight.
# Interfaces
Acceptor is an interface for accepting objects.
ComponentReference defines an interface for components.
Detector is an interface for detecting information about a source repository.
ImageRefGenerator is an interface for generating ImageRefs
Generators for ImageRef - Name -> ImageRef - ImageRepo + tag -> ImageRef.
NameSuggester is an object that can suggest a name for itself.
Resolver is an interface for resolving provided input to component matches.
No description provided by the author
# Type aliases
Acceptors is a list of acceptors that behave like a single acceptor.
ComponentReferences is a set of components.
Environment holds environment variables for new-app.
GroupedComponentReferences is a set of components that can be grouped by their group id.
NameSuggestions suggests names from a collection of NameSuggesters.
Objects is a set of runtime objects.
PerfectMatchWeightedResolver returns only matches from resolvers that are identified as exact (weight 0.0), and only matches from those resolvers that qualify as exact (score = 0.0).
PipelineGroup is a group of Pipelines.
ScoredComponentMatches is a set of component matches grouped by score.
WeightedResolvers is a set of weighted resolvers.