prow

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChartNotExistError      = errors.New("chart/ does not exist. Please create it using 'prow create' before calling 'prow up'.")
	DockerfileNotExistError = errors.New("Dockerfile does not exist. Please create it using 'prow create' before calling 'prow up'.")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	Endpoint   *url.URL
	Header     http.Header
	// OptionWait specifies whether or not to wait for all resources to be ready on `prow up`
	OptionWait bool
}

Client manages client side of the prow-prowd protocol. It wraps an *http.Client with a url Endpoint and common headers to send on every request.

func New

func New(endpoint *url.URL, client *http.Client) *Client

New returns a new Client with a given a URL and an optional client.

func NewFromString

func NewFromString(endpoint string, client *http.Client) (*Client, error)

NewFromString returns a new Client given a string URL and an optional client.

func (Client) Up

func (c Client) Up(appName, namespace string, out io.Writer, buildContext, chartReader io.ReadCloser) error

Up uploads the build context and chart to prowd, then writes messages from prowd to out. appName specifies the Helm release to create/update, and namespace specifies which namespace to deploy the application into.

func (Client) UpFromDir

func (c Client) UpFromDir(appName, namespace string, out io.Writer, appDir string) error

UpFromDir prepares the contents of appDir to create a build context and chart archive, then calls Up().

func (*Client) Version

func (c *Client) Version() (*version.Version, error)

Version returns the server version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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