Documentation ¶
Index ¶
- Variables
- func CleanPath(p string) (string, error)
- func CleanStaticPath(got string) (unescaped string, err error)
- func DumpObject(c interface{})
- func EnsureSysAdmin(mm *pluginapi.Client, userID string) error
- func FindDir(dir string) (string, bool)
- func LastN(s string, n int) string
- func LoadSession(mm *pluginapi.Client, sessionID, actingUserID string) (*model.Session, error)
- func NewAlreadyExistsError(args ...interface{}) 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 Pretty(in interface{}) string
- func ToJSON(in interface{}) string
- type ByteSize
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("already exists")
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 CleanStaticPath ¶
func DumpObject ¶
func DumpObject(c interface{})
DumpObject pretty prints any object to the standard output. Only used for debug.
func FindDir ¶
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 ¶
func NewAlreadyExistsError ¶
func NewAlreadyExistsError(args ...interface{}) error
func NewForbiddenError ¶
func NewForbiddenError(args ...interface{}) error
func NewInvalidError ¶
func NewInvalidError(args ...interface{}) error
func NewNotFoundError ¶
func NewNotFoundError(args ...interface{}) error
func NewUnauthorizedError ¶
func NewUnauthorizedError(args ...interface{}) error
Types ¶
Click to show internal directories.
Click to hide internal directories.