pages

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Themes embed.FS

Functions

func Render

func Render(options RenderOptions, writer io.Writer) error

Types

type RenderOptions

type RenderOptions struct {
	DisplayName      string
	ShowDetails      bool
	InstanceStates   []RenderOptionsInstanceState
	SessionDuration  time.Duration
	RefreshFrequency time.Duration
	Theme            string
	CustomThemes     fs.FS
	// If custom theme is loaded through os.DirFS, nothing prevents you
	// from escaping the prefix with relative path such as ..
	// The `AllowedCustomThemes` are the themes that were scanned during initilization
	AllowedCustomThemes map[string]bool
	Version             string
}

type RenderOptionsInstanceState

type RenderOptionsInstanceState struct {
	Name            string
	CurrentReplicas int
	DesiredReplicas int
	Status          string
	Error           error
}

type TemplateValues

type TemplateValues struct {
	DisplayName      string
	InstanceStates   []RenderOptionsInstanceState
	SessionDuration  string
	RefreshFrequency string
	Version          string
}

Jump to

Keyboard shortcuts

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