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 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) 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.