Versions in this module Expand all Collapse all v0 v0.5.2 Oct 15, 2015 Changes in this version + func CheckName(name string) error + func FormatOutputError(data []byte) v0.5.1 Sep 29, 2015 Changes in this version + func CheckHostConsistent(host string) bool + func ParseResourceName(repositoryName string) (host, application, repository, tag string, err error) v0.5.0 Sep 28, 2015 Changes in this version + const VERSION + var Cmd = &cobra.Command + var ConfigDir string + var Format string + var Headers = make(headers) + var Home = os.Getenv("HOME") + var Host string + var Password string + var User string + var Verbose bool + func Check(e error) + func DeleteBodyWantJSON(path string, body []byte) []byte + func DeleteWantJSON(path string) []byte + func DisplayStream(buffer io.ReadCloser) error + func Exit(format string, args ...interface{}) + func ExitAfterCtrlC() + func FormatOutput(data []byte, prettyFormatter func([]byte)) + func FormatOutputDef(data []byte) + func GetListApplications(args []string) []string + func GetWantJSON(path string) []byte + func PostBodyWantJSON(path string, body []byte) []byte + func PostWantJSON(path string) []byte + func ReadConfig() error + func ReqWant(method string, wantCode int, path string, jsonStr []byte) []byte + func ReqWantJSON(method string, wantCode int, path string, body []byte) []byte + func Request(method string, path string, args []byte, mods ...RequestModifier) ([]byte, int, error) + func Stream(method string, path string, args []byte, mods ...RequestModifier) (io.ReadCloser, int, error) + func StreamPrint(method string, path string, args []byte, mods ...RequestModifier) + func StreamWant(method string, wantCode int, path string, jsonStr []byte) + type Error struct + Code int + Message string + Status string + func DecodeError(data []byte) *Error + func (e *Error) Error() string + func (e *Error) String() string + type Message struct + Message string + Type string + func DecodeMessage(data []byte) *Message + type RequestModifier func(req *http.Request) + func SetHeader(key, value string) RequestModifier