Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEnvironment ¶ added in v0.3.3
func ConvertEnvironment(env []Environment) (result []string)
ConvertEnvironment converts the []Environment to "key=val" strings
func ConvertEnvironmentToDocker ¶ added in v0.3.3
func ConvertEnvironmentToDocker(env []Environment) (result string)
ConvertEnvironmentToDocker converts the []Environment into Dockerfile format
func NewHTTPReader ¶
func NewHTTPReader() schemeReader
NewHTTPReader creates an instance of the HttpURLReader
Types ¶
type Downloader ¶
Downloader downloads the specified URL to the target file location
func NewDownloader ¶
func NewDownloader() Downloader
NewDownloader creates an instance of the default Downloader implementation
type Environment ¶ added in v0.3.3
Environment represents a single environment variable definition
func GetEnvironment ¶ added in v0.3.3
func GetEnvironment(request *api.Request) ([]Environment, error)
GetEnvironment gets the .sti/environment file located in the sources and parse it into []environment
type FileURLReader ¶
type FileURLReader struct{}
FileURLReader opens a specified file and returns its stream
func (*FileURLReader) Read ¶
func (*FileURLReader) Read(url *url.URL) (io.ReadCloser, error)
Read produces an io.Reader from a file URL
type HttpURLReader ¶
HttpURLReader retrieves a response from a given http(s) URL
func (*HttpURLReader) Read ¶
func (h *HttpURLReader) Read(url *url.URL) (io.ReadCloser, error)
Read produces an io.Reader from an http(s) URL.
type ImageReader ¶
type ImageReader struct{}
ImageReader just returns information the URL is from inside the image
func (*ImageReader) Read ¶
func (*ImageReader) Read(url *url.URL) (io.ReadCloser, error)
Read throws Not implemented error