common

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 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 added in v0.5.0

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

DecodeBase64JSON decodes a base64 encoded JSON string into an object

func EncodeBase64JSON added in v0.5.0

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 added in v0.5.0

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

func (*ExecError) Error

func (e *ExecError) Error() string

func (*ExecError) Info added in v0.5.0

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

func (*ExecError) MarshalJSON added in v0.5.0

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

func (*ExecError) Message added in v0.5.0

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