action

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DataValueKey = "action_data_value_key"

Variables

This section is empty.

Functions

func GenHeaderProps

func GenHeaderProps(actionExt *apistructs.ExtensionVersion, versions []VersionOption) (props []apistructs.FormPropItem, err error)

func GenLoopProps

func GenLoopProps(loop *apistructs.PipelineTaskLoop) (loopFp []apistructs.FormPropItem)

func GenParamAndLoopProps

func GenParamAndLoopProps(actionExt *apistructs.ExtensionVersion) (params []apistructs.FormPropItem, loop []apistructs.FormPropItem, err error)

func GenResourceProps

func GenResourceProps(actionExt *apistructs.ExtensionVersion) (props []apistructs.FormPropItem, err error)

func GetFromProps

func GetFromProps(extVersion *apistructs.ExtensionVersion) (interface{}, error)

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ComponentAction

type ComponentAction struct {
	CompName string                 `json:"name"`
	Props    map[string]interface{} `json:"props"`
	State    ComponentActionState   `json:"state"`
	// contains filtered or unexported fields
}

将组件关心的数据类型具体化

func (*ComponentAction) GenActionProps

func (a *ComponentAction) GenActionProps(name, version string) (err error)

func (*ComponentAction) GenActionState

func (a *ComponentAction) GenActionState(c *apistructs.Component) (err error)

func (ComponentAction) GetActionVersion

func (a ComponentAction) GetActionVersion() string

func (ComponentAction) QueryExtensionVersion

func (a ComponentAction) QueryExtensionVersion(name, version string) (*apistructs.ExtensionVersion, []VersionOption, error)

func (*ComponentAction) Render

func (*ComponentAction) SetActionProps

func (a *ComponentAction) SetActionProps(p interface{})

func (*ComponentAction) SetActionState

func (a *ComponentAction) SetActionState(s ComponentActionState)

func (*ComponentAction) SetBundle

func (a *ComponentAction) SetBundle(b protocol.ContextBundle) error

func (*ComponentAction) SetCompName

func (a *ComponentAction) SetCompName(name string) error

type ComponentActionState

type ComponentActionState struct {
	Version string `json:"version"`
}

组件状态

type VersionOption

type VersionOption struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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