Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrChartNotExist is returned when no chart/ directory exists during "prow up." ErrChartNotExist = errors.New("chart/ does not exist. Please create it using 'prow create' before calling 'prow up'") // ErrDockerfileNotExist is returned when no Dockerfile exists during "prow up." ErrDockerfileNotExist = 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 // 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 NewFromString ¶
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, rawVals []byte) 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.
Click to show internal directories.
Click to hide internal directories.