fileInfo

package
v1.3.0-rc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type CommonFileInfo

type CommonFileInfo struct {
	Version    string                                           `json:"version,omitempty"`
	Name       string                                           `json:"name,omitempty"`
	Type       string                                           `json:"type,omitempty"`
	Props      map[string]interface{}                           `json:"props,omitempty"`
	State      State                                            `json:"state,omitempty"`
	Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"`
	Data       Data                                             `json:"data,omitempty"`
	InParams   InParams                                         `json:"inParams,omitempty"`
}

type ComponentFileInfo

type ComponentFileInfo struct {
	CommonFileInfo
	// contains filtered or unexported fields
}

func (*ComponentFileInfo) GenComponentState

func (i *ComponentFileInfo) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentFileInfo) GetInParams

func (i *ComponentFileInfo) GetInParams() error

func (ComponentFileInfo) GetReq

func (i ComponentFileInfo) GetReq() error

GetReq 从InParams中获取请求参数

func (*ComponentFileInfo) RenderProtocol

func (*ComponentFileInfo) SetCtxBundle

func (i *ComponentFileInfo) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

type Data

type Data struct {
	Name           string `json:"name"`
	Description    string `json:"description"`         // 描述
	CreatorID      string `json:"creatorID,omitempty"` // 创建者
	UpdaterID      string `json:"updaterID,omitempty"` // 更新者
	CreateATString string `json:"createAtString"`
	UpdateATString string `json:"updateAtString"`
}

type InParams

type InParams struct {
}

type PropColumn

type PropColumn struct {
	Label    string `json:"label"`
	ValueKey string `json:"valueKey"`
}

type State

type State struct {
	TestPlanId uint64 `json:"testPlanId"`
	Visible    bool   `json:"visible"`
}

Jump to

Keyboard shortcuts

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