cmd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2019 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppNameFromFlagOrConfig

func AppNameFromFlagOrConfig() (string, error)

func Execute

func Execute()

func HTTPGet

func HTTPGet(endpoint string, qParams ...map[string]string) ([]byte, error)

func HTTPPostJSON

func HTTPPostJSON(endpoint string, jsonRequestData []byte, qParams ...map[string]string) ([]byte, error)

func HTTPPostJSONData

func HTTPPostJSONData(endpoint string, requestData interface{}, qParams ...map[string]string) ([]byte, error)

func HTTPUpload

func HTTPUpload(endpoint string, input *HTTPUploadInput, qParams ...map[string]string) ([]byte, error)

func HTTPUploadZip

func HTTPUploadZip(endpoint string, zipInput *zip.Input, fileName string, qParams ...map[string]string) ([]byte, error)

func StatusStr

func StatusStr(statuses []resource.Status) string

func StreamLogs

func StreamLogs(appName string, resourceName string, resourceType string, verbose bool) error

Types

type ClassificationPrediction

type ClassificationPrediction struct {
	PredictedClass         int         `json:"predicted_class"`
	PredictedClassReversed interface{} `json:"predicted_class_reversed"`
	Probabilities          []float64   `json:"probabilities"`
}

type CliConfig

type CliConfig struct {
	CortexURL          string `json:"cortex_url"`
	AWSAccessKeyID     string `json:"aws_access_key_id"`
	AWSSecretAccessKey string `json:"aws_secret_access_key"`
}

type HTTPUploadInput

type HTTPUploadInput struct {
	FilePaths map[string]string
	Bytes     map[string][]byte
}

type PredictResponse

type PredictResponse struct {
	ResourceID                string                     `json:"resource_id"`
	ClassificationPredictions []ClassificationPrediction `json:"classification_predictions"`
	RegressionPredictions     []RegressionPrediction     `json:"regression_predictions"`
}

type RegressionPrediction

type RegressionPrediction struct {
	PredictedValue         float64     `json:"predicted_value"`
	PredictedValueReversed interface{} `json:"predicted_value_reversed"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL