dashboard

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GridItem added in v0.5.0

type GridItem struct {
	X       int             `json:"x" yaml:"x"`
	Y       int             `json:"y" yaml:"y"`
	Width   int             `json:"width" yaml:"width"`
	Height  int             `json:"height" yaml:"height"`
	Content *common.JSONRef `json:"content" yaml:"content"`
}

type GridLayoutCollapse added in v0.5.0

type GridLayoutCollapse struct {
	Open bool `json:"open" yaml:"open"`
}

type GridLayoutDisplay added in v0.5.0

type GridLayoutDisplay struct {
	Title    string              `json:"title" yaml:"title"`
	Collapse *GridLayoutCollapse `json:"collapse,omitempty" yaml:"collapse,omitempty"`
}

type GridLayoutSpec added in v0.5.0

type GridLayoutSpec struct {
	Display *GridLayoutDisplay `json:"display,omitempty" yaml:"display,omitempty"`
	Items   []GridItem         `json:"items" yaml:"items"`
}

type Layout

type Layout struct {
	Kind LayoutKind `json:"kind" yaml:"kind"`
	Spec LayoutSpec `json:"spec" yaml:"spec"`
}

func (*Layout) UnmarshalJSON

func (d *Layout) UnmarshalJSON(data []byte) error

func (*Layout) UnmarshalYAML

func (d *Layout) UnmarshalYAML(unmarshal func(interface{}) error) error

type LayoutKind

type LayoutKind string
const (
	KindGridLayout LayoutKind = "Grid"
)

func (*LayoutKind) UnmarshalJSON

func (k *LayoutKind) UnmarshalJSON(data []byte) error

func (*LayoutKind) UnmarshalYAML

func (k *LayoutKind) UnmarshalYAML(unmarshal func(interface{}) error) error

type LayoutSpec added in v0.5.0

type LayoutSpec interface {
}

type ListVariableSpec added in v0.11.0

type ListVariableSpec struct {
	variable.ListSpec `json:",inline" yaml:",inline"`
	Name              string `json:"name" yaml:"name"`
	// contains filtered or unexported fields
}

func (*ListVariableSpec) GetName added in v0.11.0

func (v *ListVariableSpec) GetName() string

func (*ListVariableSpec) UnmarshalJSON added in v0.11.0

func (v *ListVariableSpec) UnmarshalJSON(data []byte) error

func (*ListVariableSpec) UnmarshalYAML added in v0.11.0

func (v *ListVariableSpec) UnmarshalYAML(unmarshal func(interface{}) error) error

type TextVariableSpec added in v0.11.0

type TextVariableSpec struct {
	variable.TextSpec `json:",inline" yaml:",inline"`
	Name              string `json:"name" yaml:"name"`
	// contains filtered or unexported fields
}

func (*TextVariableSpec) GetName added in v0.11.0

func (v *TextVariableSpec) GetName() string

func (*TextVariableSpec) UnmarshalJSON added in v0.11.0

func (v *TextVariableSpec) UnmarshalJSON(data []byte) error

func (*TextVariableSpec) UnmarshalYAML added in v0.11.0

func (v *TextVariableSpec) UnmarshalYAML(unmarshal func(interface{}) error) error

type Variable

type Variable struct {
	// Kind is the type of the variable. Depending on the value of Kind, it will change the content of Spec.
	Kind variable.Kind `json:"kind" yaml:"kind"`
	Spec variableSpec  `json:"spec" yaml:"spec"`
}

func (*Variable) UnmarshalJSON

func (v *Variable) UnmarshalJSON(data []byte) error

func (*Variable) UnmarshalYAML

func (v *Variable) UnmarshalYAML(unmarshal func(interface{}) error) error

type VariableGroup added in v0.11.0

type VariableGroup struct {
	Variables []string
}

func BuildVariableOrder added in v0.11.0

func BuildVariableOrder(variables []Variable) ([]VariableGroup, error)

BuildVariableOrder determinate which variable we have to build first (aka to perform the query). Here is the description of the algorithm followed:

1. First calculate which variable depend on others 2. Then, thanks to the dependencies, we can create a dependency graph. 3. Then we have to determinate the build order.

Jump to

Keyboard shortcuts

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