controller

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusError   = "error"
	StatusSuccess = "success"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller contains all the request handler functions for the admin ui.

func NewController

func NewController(namespaceService *namespace.Service) *Controller

NewController creates new Controller instance.

func (Controller) CreateNamespace

func (c Controller) CreateNamespace(ctx *fiber.Ctx) error

CreateNamespace creates a new namespace record.

func (Controller) DeleteNamespace

func (c Controller) DeleteNamespace(ctx *fiber.Ctx) error

DeleteNamespace deletes a namespace record.

func (Controller) GetNamespace

func (c Controller) GetNamespace(ctx *fiber.Ctx) error

GetNamespace renders the update view for a namespace.

func (Controller) GetNamespaces

func (c Controller) GetNamespaces(ctx *fiber.Ctx) error

GetNamespaces renders the list view with no message.

func (Controller) NewNamespace

func (c Controller) NewNamespace(ctx *fiber.Ctx) error

NewNamespace renders the create view for a namespace.

func (Controller) UpdateNamespace

func (c Controller) UpdateNamespace(ctx *fiber.Ctx) error

UpdateNamespace udpates an existing namespace record.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL