Documentation ¶
Index ¶
- Variables
- type FiberServer
- func (s *FiberServer) AddSudoerHandler(c *fiber.Ctx) error
- func (s *FiberServer) ArsenalKeyHandler(c *fiber.Ctx) error
- func (s *FiberServer) AuthHandler(c *fiber.Ctx) error
- func (s *FiberServer) ChallengeHandler(c *fiber.Ctx) error
- func (s *FiberServer) KeyHandler(c *fiber.Ctx) error
- func (s *FiberServer) RegisterFiberRoutes()
- func (s *FiberServer) RevokeSudoerHandler(c *fiber.Ctx) error
- func (s *FiberServer) SUChecker(c *fiber.Ctx, key string) (bool, error)
- func (s *FiberServer) ValidateAPIKey(c *fiber.Ctx, key string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotEnoughPerm = errors.New("You aren't authorized to perform this action.")
)
View Source
var (
PsshNotFound = errors.New("pssh field can not be emtpy")
)
Functions ¶
This section is empty.
Types ¶
type FiberServer ¶
func New ¶
func New() *FiberServer
func (*FiberServer) AddSudoerHandler ¶
func (s *FiberServer) AddSudoerHandler(c *fiber.Ctx) error
func (*FiberServer) ArsenalKeyHandler ¶
func (s *FiberServer) ArsenalKeyHandler(c *fiber.Ctx) error
func (*FiberServer) AuthHandler ¶
func (s *FiberServer) AuthHandler(c *fiber.Ctx) error
AuthHandler just returns ok if user is authenticated or not
func (*FiberServer) ChallengeHandler ¶
func (s *FiberServer) ChallengeHandler(c *fiber.Ctx) error
func (*FiberServer) KeyHandler ¶
func (s *FiberServer) KeyHandler(c *fiber.Ctx) error
func (*FiberServer) RegisterFiberRoutes ¶
func (s *FiberServer) RegisterFiberRoutes()
func (*FiberServer) RevokeSudoerHandler ¶
func (s *FiberServer) RevokeSudoerHandler(c *fiber.Ctx) error
func (*FiberServer) SUChecker ¶
func (s *FiberServer) SUChecker(c *fiber.Ctx, key string) (bool, error)
func (*FiberServer) ValidateAPIKey ¶
func (s *FiberServer) ValidateAPIKey(c *fiber.Ctx, key string) (bool, error)
Click to show internal directories.
Click to hide internal directories.