sti

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap added in v0.2.1

type Bootstrap struct {
	DestinationDir string
	ImageName      string
}

Bootstrap defines parameters for the template processing

func NewCreate added in v0.2.1

func NewCreate(name, dst string) *Bootstrap

NewCreate returns a new bootstrap for giben image name and destination directory

func (*Bootstrap) AddDockerfile added in v0.2.1

func (b *Bootstrap) AddDockerfile()

AddDockerfile creates an example Dockerfile

func (*Bootstrap) AddSTIScripts added in v0.2.1

func (b *Bootstrap) AddSTIScripts()

AddSTIScripts creates the STI scripts directory structure and process templates for STI scripts

func (*Bootstrap) AddTests added in v0.2.1

func (b *Bootstrap) AddTests()

AddTests creates an example test for the STI image and the Makefile

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder provides a simple Build interface

func NewBuilder

func NewBuilder(req *api.Request) (*Builder, error)

NewBuilder returns a new Builder

func (*Builder) Build

func (b *Builder) Build() (*api.Result, error)

Build processes a Request and returns a *api.Result 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 Usage

type Usage struct {
	// contains filtered or unexported fields
}

Usage display usage information about a particular build image

func NewUsage

func NewUsage(req *api.Request) (*Usage, error)

NewUsage creates a new instance of the default Usage implementation

func (*Usage) Show

func (u *Usage) Show() error

Show starts the builder container and invokes the usage script on it to print usage information for the script.

Directories

Path Synopsis
Provides types used for processing sti requests.
Provides types used for processing sti requests.
create

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL