controllers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package controllers is responsible to set up the controllers for the http handlers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(c *fiber.Ctx) []string

CheckAuth checks if the token is valid and returns the github team slugs

func FrontendGithubLogin added in v0.1.4

func FrontendGithubLogin(c *fiber.Ctx) error

FrontendGithubLogin gets the github data and sends it to LoggedIn()

func GetCPUCostSum

func GetCPUCostSum(c *fiber.Ctx) error

GetCPUCostSum returns the cpu cost sum per tenant

func GetCPUQuota added in v0.3.0

func GetCPUQuota(c *fiber.Ctx) error

GetCPUQuota returns the CPU quota of a tenant by the label at the tenant config namespace

func GetCPURequestsSum

func GetCPURequestsSum(c *fiber.Ctx) error

GetCPURequestsSum returns the sum of all cpu requests by authenticated users tenants

func GetIngressCostSum added in v0.1.4

func GetIngressCostSum(c *fiber.Ctx) error

GetIngressCostSum returns the ingress cost sum per tenant

func GetIngresses added in v0.6.0

func GetIngresses(c *fiber.Ctx) error

GetIngresses returns the sum of all ingress requests by authenticated users tenants

func GetMemoryCostSum

func GetMemoryCostSum(c *fiber.Ctx) error

GetMemoryCostSum returns the memory cost sum per tenant

func GetMemoryQuota added in v0.3.0

func GetMemoryQuota(c *fiber.Ctx) error

GetMemoryQuota returns the Memory quota of a tenant by the label at the tenant config namespace

func GetMemoryRequestsSum

func GetMemoryRequestsSum(c *fiber.Ctx) error

GetMemoryRequestsSum returns the sum of all memory requests by authenticated users tenants

func GetNotifications added in v0.3.0

func GetNotifications(c *fiber.Ctx) error

GetNotifications returns all slack notifications of a broadcast channel by authenticated users tenants

func GetPVCs added in v0.6.0

func GetPVCs(c *fiber.Ctx) error

GetPVCs returns a list of PVCs by authenticated users tenants

func GetPods

func GetPods(c *fiber.Ctx) error

GetPods returns all pods by authenticated users tenants

func GetStorageCostSum

func GetStorageCostSum(c *fiber.Ctx) error

GetStorageCostSum returns the storage cost sum per tenant

func GetStorageQuota added in v0.3.0

func GetStorageQuota(c *fiber.Ctx) error

GetStorageQuota returns the Storage quota of a tenant by the label at the tenant config namespace

func GetStorageRequestsSum

func GetStorageRequestsSum(c *fiber.Ctx) error

GetStorageRequestsSum returns the sum of all storage requests by authenticated users tenants

func GetTenants added in v0.2.0

func GetTenants(c *fiber.Ctx) error

GetTenants returns all tenants by authentication

func GithubCallback

func GithubCallback(c *fiber.Ctx) error

GithubCallback handles the callback with the code query param

func GithubLogin

func GithubLogin(c *fiber.Ctx) error

GetGithubTeams returns the redirect url

func LoggedIn

func LoggedIn(c *fiber.Ctx, githubData string) error

LoggedIn handles the login and returns the token

Types

This section is empty.

Jump to

Keyboard shortcuts

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