package
1.5.0
Repository: https://github.com/openshift/source-to-image.git
Documentation: pkg.go.dev

# Functions

ConvertEnvironmentList converts the EnvironmentList to "key=val" strings.
ConvertEnvironmentToDocker converts the EnvironmentList into Dockerfile format.
GetEnvironment gets the .s2i/environment file located in the sources and parse it into EnvironmentList.
NewDownloader creates an instance of the default Downloader implementation.
NewHTTPURLReader returns a new HTTPURLReader.
NewInstaller returns a new instance of the default Installer implementation.

# Constants

ImageURLHandler is the name of the image URL handler.
ScriptURLHandler is the name of the script URL handler.
SourceHandler is the name of the source script handler.

# Variables

OptionalScripts may be provided when doing an s2i build.
RequiredScripts must be present to do an s2i build.

# Structs

DefaultScriptSourceManager manages the default script lookup and installation for source-to-image.
FileURLReader opens a specified file and returns its stream.
HTTPURLReader retrieves a response from a given HTTP(S) URL.
ImageReader just returns information the URL is from inside the image.
SourceScriptHandler handles the case when the scripts are contained in the source code directory.
URLScriptHandler handles script download using URL.

# Interfaces

Downloader downloads the specified URL to the target file location.
Installer interface is responsible for installing scripts needed to run the build.
ScriptHandler provides an interface for various scripts source handlers.
ScriptSourceManager manages various script handlers.