Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExistsInContainer ¶
Determine whether a file exists in a container.
Types ¶
type BuildRequest ¶
type BuildResult ¶
type BuildResult STIResult
func Build ¶
func Build(req BuildRequest) (*BuildResult, error)
Build processes a BuildRequest and returns a *BuildResult and an error. An error represents a failure performing the build rather than a failure of the build itself. Callers should check the Success field of the result to determine whether a build succeeded or not.
type Request ¶
type Request struct { BaseImage string DockerSocket string DockerTimeout int WorkingDir string Debug bool }
Request contains essential fields for any request: a Configuration, a base image, and an optional runtime image.
type ValidateRequest ¶
Describes a request to validate an images for use in an sti build.
type ValidateResult ¶
type ValidateResult STIResult
func Validate ¶
func Validate(req ValidateRequest) (*ValidateResult, error)
Service the supplied ValidateRequest and return a ValidateResult.
Click to show internal directories.
Click to hide internal directories.