common

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2017 License: Apache-2.0 Imports: 6 Imported by: 7 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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