front

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOrReload added in v0.9.31

func InitOrReload() error

InitOrReload init or reload the layout

Types

type Container added in v0.9.10

type Container struct {
	Name, Image string
}

type IndexView added in v0.8.9

type IndexView struct {
}

IndexView ...

func (IndexView) FullPageRender added in v0.9.31

func (i IndexView) FullPageRender(w io.Writer, l LayoutView) error

FullPageRender ...

func (IndexView) Render added in v0.8.9

func (i IndexView) Render(w io.Writer) error

Render ...

type LayoutView added in v0.9.31

type LayoutView struct {
	User    string
	Env     string
	Content any
}

LayoutView is a view for the layou

func NewLayout added in v0.9.31

func NewLayout(user, env string) LayoutView

type ProfileView added in v0.9.19

type ProfileView struct {
	User string
}

ProfileView ...

func (ProfileView) FullPageRender added in v0.9.31

func (p ProfileView) FullPageRender(w io.Writer, l LayoutView) error

FullPageRender ...

func (ProfileView) Render added in v0.9.19

func (p ProfileView) Render(w io.Writer) error

type Resource added in v0.9.10

type Resource struct {
	Containers []Container
	Name       string
	Replicas   int
	Age        string
}

type TableView added in v0.9.0

type TableView struct {
	Description string
	Namespace   string
	Kind        string
	Data        []Resource
}

TableView ...

func (*TableView) AddDeploys added in v0.9.10

func (t *TableView) AddDeploys(ds []apps.Deployment)

AddDeploys ...

func (*TableView) AddSts added in v0.9.10

func (t *TableView) AddSts(ss []apps.StatefulSet)

AddSts ...

func (TableView) FullPageRender added in v0.9.31

func (t TableView) FullPageRender(w io.Writer, l LayoutView) error

FullPageRender ...

func (TableView) Render added in v0.9.0

func (t TableView) Render(w io.Writer) error

Jump to

Keyboard shortcuts

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