Documentation ¶
Index ¶
- type ComponentAddWorkloadFilter
- func (f *ComponentAddWorkloadFilter) GenComponentState(c *cptype.Component) error
- func (f *ComponentAddWorkloadFilter) Init(ctx servicehub.Context) error
- func (f *ComponentAddWorkloadFilter) InitComponent(ctx context.Context)
- func (f *ComponentAddWorkloadFilter) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (f *ComponentAddWorkloadFilter) SetComponentValue(ctx context.Context) error
- func (f *ComponentAddWorkloadFilter) Transfer(c *cptype.Component)
- type Condition
- type CustomProps
- type Operation
- type Option
- type State
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentAddWorkloadFilter ¶
type ComponentAddWorkloadFilter struct { base.DefaultProvider Type string `json:"type"` State State `json:"state"` Operations map[string]interface{} `json:"operations,omitempty"` // contains filtered or unexported fields }
func (*ComponentAddWorkloadFilter) GenComponentState ¶
func (f *ComponentAddWorkloadFilter) GenComponentState(c *cptype.Component) error
func (*ComponentAddWorkloadFilter) Init ¶
func (f *ComponentAddWorkloadFilter) Init(ctx servicehub.Context) error
func (*ComponentAddWorkloadFilter) InitComponent ¶
func (f *ComponentAddWorkloadFilter) InitComponent(ctx context.Context)
func (*ComponentAddWorkloadFilter) Render ¶
func (f *ComponentAddWorkloadFilter) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentAddWorkloadFilter) SetComponentValue ¶
func (f *ComponentAddWorkloadFilter) SetComponentValue(ctx context.Context) error
func (*ComponentAddWorkloadFilter) Transfer ¶
func (f *ComponentAddWorkloadFilter) 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"`
}
Click to show internal directories.
Click to hide internal directories.