filter

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLabels = []string{"dice/workspace-dev=true", "dice/workspace-test=true", "dice/workspace-staging=true",
	"dice/workspace-prod=true", "dice/stateful-service=true", "dice/stateless-service=true",
	"dice/location-cluster-service=true", "dice/job=true", "dice/bigdata-job=true", "dice/lb=true", "dice/platform=true"}

Functions

This section is empty.

Types

type Condition added in v1.4.0

type Condition struct {
	EmptyText   string   `json:"emptyText"`
	Fixed       bool     `json:"fixed"`
	Key         string   `json:"key"`
	Label       string   `json:"label"`
	HaveFilter  bool     `json:"haveFilter"`
	Options     []Option `json:"options"`
	Type        string   `json:"type"`
	Placeholder string   `json:"placeholder"`
}

type Filter

type Filter struct {
	base.DefaultProvider
	CtxBdl     *bundle.Bundle
	SDK        *cptype.SDK
	Type       string                 `json:"type"`
	Operations map[string]interface{} `json:"operations"`
	State      State                  `json:"state"`
	Props      Props                  `json:"props"`
}

func (*Filter) GetFilterProps

func (f *Filter) GetFilterProps(labels map[string]struct{}) Props

type Operation

type Operation struct {
	Key    string `json:"key,omitempty"`
	Reload bool   `json:"reload,omitempty"`
}

type Option

type Option struct {
	Label    string   `json:"label"`
	Value    string   `json:"value"`
	Children []Option `json:"children"`
}

type Props

type Props struct {
	Delay int `json:"delay"`
}

type State

type State struct {
	Conditions     []Condition `json:"conditions"`
	Values         Values      `json:"values"`
	ClusterName    string      `json:"clusterName"`
	FilterUrlQuery string      `json:"filter__urlQuery,omitempty"`
}

type Values

type Values map[string]interface{}

Jump to

Keyboard shortcuts

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