controllers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultH

func DefaultH(c *gin.Context) gin.H

DefaultH returns common to all pages template data

func GetProviderResources

func GetProviderResources(provider string) []string

GetProviderResources returns the resource names supported by the provider

func GetTemplates

func GetTemplates() *template.Template

GetTemplates returns preloaded templates

func GetTemplatesDir

func GetTemplatesDir() string

GetTemplatesDir get path to templates file

func HomeGet

func HomeGet(c *gin.Context)

HomeGet handles GET / route

func LoadTemplates

func LoadTemplates(p []*types.Provider)

LoadTemplates loads templates from views directory

func ProviderEnabled

func ProviderEnabled(s string) bool

ProviderEnabled returns whether a provider is enabled or not

func StringIn

func StringIn(s string, arr []string) bool

StringIn returns whether a string is in an array

func StyleClass

func StyleClass(s resource.Status) string

StyleClass : The css class to represent the state with

Types

This section is empty.

Jump to

Keyboard shortcuts

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