cmd

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxProjectSize = 1024 * 1024 * 50

Functions

func AppNameFromFlagOrConfig

func AppNameFromFlagOrConfig() (string, error)

func ErrorAPINotFound added in v0.4.0

func ErrorAPINotFound(apiName string) error

func ErrorAPINotReady added in v0.4.0

func ErrorAPINotReady(apiName string, status string) error

func ErrorCliAlreadyInAppDir added in v0.4.0

func ErrorCliAlreadyInAppDir(dirPath string) error

func ErrorCliNotInAppDir added in v0.4.0

func ErrorCliNotInAppDir() error

func ErrorFailedConnectURL added in v0.9.0

func ErrorFailedConnectURL(url url.URL) error

func ErrorFailedToConnectOperator added in v0.9.0

func ErrorFailedToConnectOperator(urlStr 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 IsAppNameSpecified added in v0.7.0

func IsAppNameSpecified() bool

func StatusStr

func StatusStr(statuses []resource.Status) string

func StreamLogs

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

Types

type CLIConfig added in v0.8.0

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

type Error added in v0.4.0

type Error struct {
	Kind ErrorKind
	// contains filtered or unexported fields
}

func (Error) Error added in v0.4.0

func (e Error) Error() string

type ErrorKind added in v0.4.0

type ErrorKind int
const (
	ErrUnknown ErrorKind = iota
	ErrCLIAlreadyInAppDir
	ErrAPINotReady
	ErrAPINotFound
	ErrFailedToConnectURL
	ErrFailedToConnectOperator
	ErrCLINotInAppDir
)

func (ErrorKind) MarshalBinary added in v0.4.0

func (t ErrorKind) MarshalBinary() ([]byte, error)

MarshalBinary satisfies BinaryMarshaler

func (ErrorKind) MarshalText added in v0.4.0

func (t ErrorKind) MarshalText() ([]byte, error)

MarshalText satisfies TextMarshaler

func (ErrorKind) String added in v0.4.0

func (t ErrorKind) String() string

func (*ErrorKind) UnmarshalBinary added in v0.4.0

func (t *ErrorKind) UnmarshalBinary(data []byte) error

UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack

func (*ErrorKind) UnmarshalText added in v0.4.0

func (t *ErrorKind) UnmarshalText(text []byte) error

UnmarshalText satisfies TextUnmarshaler

type HTTPUploadInput

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

type SupportRequest added in v0.9.0

type SupportRequest struct {
	Timestamp    time.Time `json:"timestamp"`
	EmailAddress string    `json:"email_address"`
	ID           string    `json:"support_id"`
	Source       string    `json:"source"`
	Body         string    `json:"body"`
}

Jump to

Keyboard shortcuts

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