common

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64JSON

func DecodeBase64JSON(encodedStr string, obj interface{}) error

DecodeBase64JSON decodes a base64 encoded JSON string into an object

func EncodeBase64JSON

func EncodeBase64JSON(data interface{}) (string, error)

EncodeBase64JSON encodes an object into a base64 encoded JSON string

Types

type ExecError

type ExecError struct {
	// Variable names are prefixed with "Error" because they
	// must be exported for JSON unmarshalling to work, and that
	// they must not be in conflict with the functions of the same name.
	ErrorCode    skyerr.ErrorCode       `json:"code"`
	ErrorMessage string                 `json:"message"`
	ErrorInfo    map[string]interface{} `json:"info"`
}

ExecError is error resulted from application logic of plugin (e.g. an exception thrown within a lambda function)

func (*ExecError) Code

func (e *ExecError) Code() skyerr.ErrorCode

func (*ExecError) Error

func (e *ExecError) Error() string

func (*ExecError) Info

func (e *ExecError) Info() map[string]interface{}

func (*ExecError) MarshalJSON

func (e *ExecError) MarshalJSON() ([]byte, error)

func (*ExecError) Message

func (e *ExecError) Message() string

func (*ExecError) Name

func (e *ExecError) Name() string

Jump to

Keyboard shortcuts

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