Documentation ¶
Overview ¶
Package cloudcfg is ...
Index ¶
- func DeleteController(name string, client client.ClientInterface) error
- func DoRequest(request *http.Request, user, password string) (string, error)
- func LoadAuthInfo(path string) (client.AuthInfo, error)
- func RequestWithBody(configFile, url, method string) (*http.Request, error)
- func RequestWithBodyData(data []byte, url, method string) (*http.Request, error)
- func RunController(image, name string, replicas int, client client.ClientInterface, ...) error
- func StopController(name string, client client.ClientInterface) error
- func Update(name string, client client.ClientInterface, updatePeriod time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteController ¶
func DeleteController(name string, client client.ClientInterface) error
DeleteController deletes a replication controller named 'name', requires that the controller already be stopped
func DoRequest ¶
Execute a request, adds authentication, and HTTPS cert ignoring. TODO: Make this stuff optional FIXME: need to be public API?
func LoadAuthInfo ¶
Parse an AuthInfo object from a file path
func RequestWithBody ¶
RequestWithBody is a helper method that creates an HTTP request with the specified url, method and a body read from 'configFile' FIXME: need to be public API?
func RequestWithBodyData ¶
RequestWithBodyData is a helper method that creates an HTTP request with the specified url, method and body data FIXME: need to be public API?
func RunController ¶
func RunController(image, name string, replicas int, client client.ClientInterface, portSpec string, servicePort int) error
RunController creates a new replication controller named 'name' which creates 'replicas' tasks running 'image'
func StopController ¶
func StopController(name string, client client.ClientInterface) error
StopController stops a controller named 'name' by setting replicas to zero
Types ¶
This section is empty.