Documentation
¶
Index ¶
- func GenerateRandomString(n int) string
- type Controller
- func (c *Controller) GetCurrentNamespace(ctx *fiber.Ctx) error
- func (c *Controller) GetNamespaces(ctx *fiber.Ctx) error
- func (c *Controller) InternalServerError(ctx *fiber.Ctx) error
- func (c *Controller) ListNamespaces(ctx *fiber.Ctx) error
- func (c *Controller) Login(ctx *fiber.Ctx) error
- func (c *Controller) NotFoundError(ctx *fiber.Ctx) error
- func (c *Controller) SetOIDCClient(oidcClient oidc.ClientProvider)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString generate random string with length equal n.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller handles all the input HTTP requests.
func NewController ¶
func NewController(config *config.Config, namespaceService *namespace.Service) *Controller
NewController creates a new Controller instance.
func (*Controller) GetCurrentNamespace ¶ added in v0.6.0
func (c *Controller) GetCurrentNamespace(ctx *fiber.Ctx) error
GetCurrentNamespace handles `GET /namespaces/current` endpoint.
func (*Controller) GetNamespaces ¶
func (c *Controller) GetNamespaces(ctx *fiber.Ctx) error
GetNamespaces renders the index view
func (*Controller) InternalServerError ¶
func (c *Controller) InternalServerError(ctx *fiber.Ctx) error
InternalServerError renders Internal Server error page.
func (*Controller) ListNamespaces ¶ added in v0.6.0
func (c *Controller) ListNamespaces(ctx *fiber.Ctx) error
ListNamespaces handles `GET /namespaces` endpoint.
func (*Controller) Login ¶ added in v0.6.0
func (c *Controller) Login(ctx *fiber.Ctx) error
Login renders Login page.
func (*Controller) NotFoundError ¶ added in v0.6.0
func (c *Controller) NotFoundError(ctx *fiber.Ctx) error
NotFoundError renders Not Found error page.
func (*Controller) SetOIDCClient ¶
func (c *Controller) SetOIDCClient(oidcClient oidc.ClientProvider)
SetOIDCClient sets OIDC client.
Click to show internal directories.
Click to hide internal directories.