Documentation
¶
Overview ¶
Package controllers is responsible to set up the controllers for the http handlers
Index ¶
- func CheckAuth(c *fiber.Ctx) []string
- func FrontendGithubLogin(c *fiber.Ctx) error
- func GetCPUCostSum(c *fiber.Ctx) error
- func GetCPUQuota(c *fiber.Ctx) error
- func GetCPURequestsSum(c *fiber.Ctx) error
- func GetIngressCostSum(c *fiber.Ctx) error
- func GetIngresses(c *fiber.Ctx) error
- func GetMemoryCostSum(c *fiber.Ctx) error
- func GetMemoryQuota(c *fiber.Ctx) error
- func GetMemoryRequestsSum(c *fiber.Ctx) error
- func GetNotifications(c *fiber.Ctx) error
- func GetPVCs(c *fiber.Ctx) error
- func GetPods(c *fiber.Ctx) error
- func GetStorageCostSum(c *fiber.Ctx) error
- func GetStorageQuota(c *fiber.Ctx) error
- func GetStorageRequestsSum(c *fiber.Ctx) error
- func GetTenants(c *fiber.Ctx) error
- func GithubCallback(c *fiber.Ctx) error
- func GithubLogin(c *fiber.Ctx) error
- func LoggedIn(c *fiber.Ctx, githubData string) error
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
Types ¶
This section is empty.