filter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentFilter

type ComponentFilter struct {
	base.DefaultProvider

	Type       string                 `json:"type,omitempty"`
	State      State                  `json:"state,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentFilter) DecodeURLQuery

func (f *ComponentFilter) DecodeURLQuery() error

func (*ComponentFilter) EncodeURLQuery

func (f *ComponentFilter) EncodeURLQuery() error

func (*ComponentFilter) GenComponentState

func (f *ComponentFilter) GenComponentState(c *cptype.Component) error

func (*ComponentFilter) Init

func (f *ComponentFilter) Init(ctx servicehub.Context) error

func (*ComponentFilter) InitComponent

func (f *ComponentFilter) InitComponent(ctx context.Context)

func (*ComponentFilter) Render

func (*ComponentFilter) SetComponentValue

func (f *ComponentFilter) SetComponentValue(ctx context.Context) error

func (*ComponentFilter) Transfer

func (f *ComponentFilter) Transfer(c *cptype.Component)

type Condition

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

type Operation

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

type Option

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

type State

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

type Values

type Values struct {
	Kind      []string `json:"kind,omitempty"`
	Namespace []string `json:"namespace,omitempty"`
	Status    []string `json:"status,omitempty"`
	Node      []string `json:"node,omitempty"`
	Search    string   `json:"search,omitempty"`
}

Jump to

Keyboard shortcuts

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