types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PanelTypeTable = "table"
	PanelTypeItem  = "item"
	PanelTypeLogs  = "logs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Header string `json:"header" yaml:"header"`
	Width  int    `json:"width" yaml:"width"`
	Path   string `json:"path" yaml:"path"`
}

type Dashboard

type Dashboard struct {
	Panels []Panel `json:"panels" yaml:"panels"`
}

type Item

type Item struct {
	PanelBase
	Key types.NamespacedName `json:"key" yaml:"key"`
}

type Logs

type Logs struct {
	PanelBase
	Key       types.NamespacedName `json:"key" yaml:"key"`
	Container string               `json:"container" yaml:"container"`
}

type Panel

type Panel struct {
	PanelBase
	Blob json.RawMessage `json:"blob" yaml:"blob"`
}

func (*Panel) UnmarshalJSON

func (p *Panel) UnmarshalJSON(data []byte) error

type PanelBase

type PanelBase struct {
	Name    string `json:"name" yaml:"name"`
	Group   string `json:"group" yaml:"group"`
	Version string `json:"version" yaml:"version"`
	Kind    string `json:"kind" yaml:"kind"`
	Type    string `json:"type" yaml:"type"`
}

type Table

type Table struct {
	PanelBase
	Columns       []Column          `json:"columns" yaml:"columns"`
	Namespace     string            `json:"namespace" yaml:"namespace"`
	LabelSelector map[string]string `json:"labelSelector" yaml:"labelSelector"`
}

Jump to

Keyboard shortcuts

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