page

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackedContent

type PackedContent struct {
	AppName           string
	AppGeneration     string
	Attributes        map[string]string
	Content           string
	CustomElementName string
	Slot              string
}

func (*PackedContent) ToHTML

func (r *PackedContent) ToHTML(slot string) string

type PageHandler

type PageHandler struct {
	Content            map[string]PackedContent
	Footer             string
	Header             string
	MainTemplate       string
	Name               string
	Navigations        map[string]string
	PackageReferences  []kdexv1alpha1.PackageReference
	Page               *kdexv1alpha1.KDexPageSpec
	ParsedRequirements *entitlements.ParsedRequirements
	RequiredBackends   []kdexv1alpha1.KDexObjectReference
	Scripts            []kdexv1alpha1.ScriptDef
	Status             *kdexv1alpha1.KDexObjectStatus
	UtilityPage        *kdexv1alpha1.KDexUtilityPageSpec
	// contains filtered or unexported fields
}

func (PageHandler) BasePath

func (p PageHandler) BasePath() string

func (*PageHandler) CacheKey added in v0.2.7

func (p *PageHandler) CacheKey(l language.Tag) string

func (*PageHandler) Checksum added in v0.2.7

func (p *PageHandler) Checksum() string

func (*PageHandler) ContentToHTMLMap

func (p *PageHandler) ContentToHTMLMap() map[string]string

func (PageHandler) Label

func (p PageHandler) Label() string

func (PageHandler) NavigationToHTMLMap

func (p PageHandler) NavigationToHTMLMap() map[string]string

func (PageHandler) PatternPath

func (p PageHandler) PatternPath() string

type PageStore

type PageStore struct {
	// contains filtered or unexported fields
}

func NewPageStore

func NewPageStore(host string, onUpdate func(), log logr.Logger) *PageStore

func (*PageStore) Count

func (s *PageStore) Count() int

func (*PageStore) Delete

func (s *PageStore) Delete(name string)

func (*PageStore) Get

func (s *PageStore) Get(name string) (PageHandler, bool)

func (*PageStore) List

func (s *PageStore) List() []PageHandler

func (*PageStore) Set

func (s *PageStore) Set(handler PageHandler)

func (*PageStore) UpdateParsedRequirements added in v0.2.9

func (s *PageStore) UpdateParsedRequirements(name string, parsed entitlements.ParsedRequirements)

type ResolvedContentEntry

type ResolvedContentEntry struct {
	App     *kdexv1alpha1.KDexAppSpec
	AppObj  client.Object
	Content PackedContent
}

type ResolvedNavigation

type ResolvedNavigation struct {
	Generation int64
	Name       string
	Spec       *kdexv1alpha1.KDexPageNavigationSpec
}

Jump to

Keyboard shortcuts

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