templates

package
v0.0.0-...-39d6a1f Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefreshText = "Refresh"
	RefreshUrl  = "."
)

Variables

View Source
var RefreshButton = ButtonLinks{
	Href: RefreshUrl,
	Text: RefreshText,
}

Functions

func CreateTemplate

func CreateTemplate(file string) (string, error)

func InitTemplates

func InitTemplates() error

Types

type ButtonLinks struct {
	Text string
	Href string
}

type Home

type Home struct {
	Filename string
	Headers  []ButtonLinks
}

type K8Template

type K8Template struct {
	Filename    string
	Buttons     []ButtonLinks
	BreadCrumbs []ButtonLinks
	Headers     []string
	Rows        [][]string
	Version     string
}

type TableTemplate

type TableTemplate struct {
	Filename string
	Headers  []string
	Rows     [][]string
}

type Template

type Template string
var (
	HOME  Template
	TABLE Template
	K8    Template
)

func (Template) GetTemplate

func (template Template) GetTemplate() string

Jump to

Keyboard shortcuts

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