templates

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

templ: version: v0.3.960

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dashboard

func Dashboard(data DashboardData) templ.Component

func Layout

func Layout(title string) templ.Component

func PluginCard

func PluginCard(plugin PluginInfo) templ.Component

func PluginForm

func PluginForm(data PluginFormData) templ.Component

func PluginList

func PluginList(data PluginListData) templ.Component

func PluginListCard

func PluginListCard(plugin PluginListItem) templ.Component

func ServerCard

func ServerCard(server ServerSummary) templ.Component

func ServerDetail

func ServerDetail(data ServerDetailData) templ.Component

func ServerForm

func ServerForm(data ServerFormData) templ.Component

Types

type DashboardData

type DashboardData struct {
	Servers           []ServerSummary
	Namespaces        []string
	SelectedNamespace string
}

type MaintenanceInfo

type MaintenanceInfo struct {
	CheckCron  string
	WindowCron string
	NextWindow string
}

type PluginFormData

type PluginFormData struct {
	IsEdit      bool
	Name        string
	Namespace   string
	SourceType  string
	Project     string
	URL         string
	Checksum    string
	Strategy    string
	Version     string
	UpdateDelay string
	Namespaces  []string
	Error       string
}

type PluginInfo

type PluginInfo struct {
	Name            string
	Project         string
	ResolvedVersion string
	Status          string
}

type PluginListData

type PluginListData struct {
	Plugins           []PluginListItem
	Namespaces        []string
	SelectedNamespace string
}

type PluginListItem

type PluginListItem struct {
	Name            string
	Namespace       string
	SourceType      string
	Project         string
	UpdateStrategy  string
	Version         string
	ResolvedVersion string
	MatchedServers  int
}

type PluginSummary

type PluginSummary struct {
	Name           string
	CurrentVersion string
	DesiredVersion string
}

type PluginUpdate

type PluginUpdate struct {
	Name        string
	FromVersion string
	ToVersion   string
}

type ServerDetailData

type ServerDetailData struct {
	Name                string
	Namespace           string
	CurrentPaperVersion string
	DesiredPaperVersion string
	AvailableUpdate     string
	Plugins             []PluginInfo
	MaintenanceSchedule MaintenanceInfo
	LastUpdate          UpdateInfo
	Labels              map[string]string
}

type ServerFormData

type ServerFormData struct {
	IsEdit             bool
	Name               string
	Namespace          string
	Strategy           string
	Version            string
	Build              string
	UpdateDelay        string
	CheckCron          string
	MaintenanceEnabled bool
	MaintenanceCron    string
	Namespaces         []string
	Error              string
}

ServerFormData contains data for the server create/edit form.

type ServerSummary

type ServerSummary struct {
	Name                string
	Namespace           string
	CurrentPaperVersion string
	Strategy            string
	AvailableUpdate     string
	PluginCount         int
	NextMaintenance     string
	Status              string
	Plugins             []PluginSummary
	UpdatePlan          *UpdatePlan
	Labels              map[string]string
}

type UpdateInfo

type UpdateInfo struct {
	Timestamp string
	Status    string
	Message   string
}

type UpdatePlan

type UpdatePlan struct {
	PaperUpdate   string
	PluginUpdates []PluginUpdate
	AppliesAt     string
}

Jump to

Keyboard shortcuts

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