Documentation ¶
Index ¶
- Variables
- func DumpObject(c interface{})
- func EnsureSysAdmin(mm *pluginapi.Client, userID string) error
- func FindDir(dir string) (string, bool)
- func LoadSession(mm *pluginapi.Client, sessionID, actingUserID string) (*model.Session, error)
- func NewError(source error, args ...interface{}) error
- func NewForbiddenError(args ...interface{}) error
- func NewInvalidError(args ...interface{}) error
- func NewNotFoundError(args ...interface{}) error
- func NewUnauthorizedError(args ...interface{}) error
- func ToJSON(in interface{}) string
- type ByteSize
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = errors.New("forbidden")
View Source
var ErrInvalid = errors.New("invalid input")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DumpObject ¶ added in v0.4.0
func DumpObject(c interface{})
DumpObject pretty prints any object to the standard output. Only used for debug.
func EnsureSysAdmin ¶ added in v0.3.0
func FindDir ¶ added in v0.2.0
FindDir looks for the given directory in nearby ancestors relative to the current working directory as well as the directory of the executable, falling back to `./` if not found.
func LoadSession ¶ added in v0.3.0
func NewForbiddenError ¶ added in v0.3.0
func NewForbiddenError(args ...interface{}) error
func NewInvalidError ¶ added in v0.3.0
func NewInvalidError(args ...interface{}) error
func NewNotFoundError ¶ added in v0.3.0
func NewNotFoundError(args ...interface{}) error
func NewUnauthorizedError ¶ added in v0.3.0
func NewUnauthorizedError(args ...interface{}) error
Types ¶
Click to show internal directories.
Click to hide internal directories.