Documentation ¶
Index ¶
- Constants
- type ComponentFilter
- func (f *ComponentFilter) DecodeURLQuery() error
- func (f *ComponentFilter) EncodeURLQuery() error
- func (f *ComponentFilter) GenComponentState(component *cptype.Component) error
- func (f *ComponentFilter) InitComponent(ctx context.Context)
- func (f *ComponentFilter) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (f *ComponentFilter) SetComponentValue(ctx context.Context) error
- type Condition
- type Operation
- type Option
- type State
- type Values
Constants ¶
View Source
const ( WorkloadActive = "Active" WorkloadError = "Error" WorkloadSucceed = "Succeeded" WorkloadFailed = "Failed" DeploymentType = "Deployment" DaemonSetType = "DaemonSet" StatefulSetType = "StatefulSet" JobType = "Job" CronJobType = "CronJob" )
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(component *cptype.Component) error
func (*ComponentFilter) InitComponent ¶
func (f *ComponentFilter) InitComponent(ctx context.Context)
func (*ComponentFilter) Render ¶
func (f *ComponentFilter) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, _ *cptype.GlobalStateData) error
func (*ComponentFilter) SetComponentValue ¶
func (f *ComponentFilter) SetComponentValue(ctx context.Context) error
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"` }
Click to show internal directories.
Click to hide internal directories.