ui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	ID         int         `json:"id"`
	Name       string      `json:"name"`
	ItemIcons  []ItemIcon  `json:"itemicons"`
	Properties []Property  `json:"properties"`
	Indicators []Indicator `json:"indicators"`
}

func Transform

func Transform(clusters []api.Cluster) ([]Cluster, error)

type Indicator

type Indicator struct {
	ID             int             `json:"id"`
	IndicatorIcon  string          `json:"indicator_icon_lg"`
	IndicatorIcons []IndicatorIcon `json:"indicator_icons"`
}

type IndicatorIcon

type IndicatorIcon struct {
	ID      int    `json:"id"`
	Color   string `json:"color"`
	Shape   string `json:"shape"`
	Overlay string `json:"overlay"`
}

type ItemIcon

type ItemIcon struct {
	Name  string `json:"name"`
	Icon  string `json:"icon"`
	Color string `json:"color"`
	Label string `json:"label"`
	Count int    `json:"count"`
}

type Property

type Property struct {
	ID         int    `json:"id"`
	Service    string `json:"service"`
	Icon       string `json:"icon"`
	Label      string `json:"label"`
	Badge      int    `json:"badge"`
	BadgeColor string `json:"badgecolor"`
}

Jump to

Keyboard shortcuts

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