addPodFilter

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentAddPodFilter

type ComponentAddPodFilter struct {
	base.DefaultProvider

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

func (*ComponentAddPodFilter) GenComponentState

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

func (*ComponentAddPodFilter) Init

func (*ComponentAddPodFilter) InitComponent

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

func (*ComponentAddPodFilter) Render

func (*ComponentAddPodFilter) SetComponentValue

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

func (*ComponentAddPodFilter) Transfer

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

type Condition

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

type CustomProps

type CustomProps struct {
	Mode string `json:"mode,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"`
}

type Values

type Values struct {
	Namespace string `json:"namespace,omitempty"`
}

Jump to

Keyboard shortcuts

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