Documentation ¶
Index ¶
- func AppNameFromFlagOrConfig() (string, error)
- func ErrorAPINotFound(apiName string) error
- func ErrorAPINotReady(apiName string, status string) error
- func ErrorCliAlreadyInAppDir(dirPath string) error
- func ErrorCliNotInAppDir() error
- func ErrorFailedToConnect(urlStr string) error
- func Execute()
- func HTTPGet(endpoint string, qParams ...map[string]string) ([]byte, error)
- func HTTPPostJSON(endpoint string, jsonRequestData []byte, qParams ...map[string]string) ([]byte, error)
- func HTTPPostJSONData(endpoint string, requestData interface{}, qParams ...map[string]string) ([]byte, error)
- func HTTPUpload(endpoint string, input *HTTPUploadInput, qParams ...map[string]string) ([]byte, error)
- func HTTPUploadZip(endpoint string, zipInput *zip.Input, fileName string, ...) ([]byte, error)
- func StatusStr(statuses []resource.Status) string
- func StreamLogs(appName string, resourceName string, resourceType string, verbose bool) error
- type CliConfig
- type Error
- type ErrorKind
- type HTTPUploadInput
- type PredictResponse
- type Prediction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppNameFromFlagOrConfig ¶
func ErrorAPINotFound ¶ added in v0.4.0
func ErrorAPINotReady ¶ added in v0.4.0
func ErrorCliAlreadyInAppDir ¶ added in v0.4.0
func ErrorCliNotInAppDir ¶ added in v0.4.0
func ErrorCliNotInAppDir() error
func ErrorFailedToConnect ¶ added in v0.4.0
func HTTPPostJSON ¶
func HTTPPostJSONData ¶
func HTTPUpload ¶
func HTTPUploadZip ¶
Types ¶
type Error ¶ added in v0.4.0
type Error struct { Kind ErrorKind // contains filtered or unexported fields }
type ErrorKind ¶ added in v0.4.0
type ErrorKind int
func (ErrorKind) MarshalBinary ¶ added in v0.4.0
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶ added in v0.4.0
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶ added in v0.4.0
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶ added in v0.4.0
UnmarshalText satisfies TextUnmarshaler
type HTTPUploadInput ¶
type PredictResponse ¶
type PredictResponse struct { ResourceID string `json:"resource_id"` Predictions []Prediction `json:"predictions"` }
type Prediction ¶ added in v0.4.0
type Prediction struct { Prediction interface{} `json:"prediction"` PredictionReversed interface{} `json:"prediction_reversed"` TransformedSample interface{} `json:"transformed_sample"` Response interface{} `json:"response"` }
Click to show internal directories.
Click to hide internal directories.