apiEditor

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptySpecID string = "undefined"
)

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ApiEditor

type ApiEditor struct {
	State State `json:"state"`
	// contains filtered or unexported fields
}

func (*ApiEditor) ExecuteApi

func (ae *ApiEditor) ExecuteApi(ops interface{}) error

ExecuteApi 小试一把

func (*ApiEditor) GenExecuteButton

func (ae *ApiEditor) GenExecuteButton() (string, error)

func (*ApiEditor) Save

func (ae *ApiEditor) Save(c *apistructs.Component) error

Save 保存

func (*ApiEditor) SetCtxBundle

func (ae *ApiEditor) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

type AttemptTestAll

type AttemptTestAll struct {
	Visible bool                   `json:"visible"`
	Status  string                 `json:"status"`
	Data    map[string]interface{} `json:"data"`
}

type ClickOperation

type ClickOperation struct {
	Key    string      `json:"key"`
	Reload bool        `json:"reload"`
	Meta   interface{} `json:"meta"`
}

type Input

type Input struct {
	Label    string  `json:"label"`
	Value    string  `json:"value"`
	IsLeaf   bool    `json:"isLeaf"`
	ToolTip  string  `json:"tooltip"`
	Children []Input `json:"children"`
}

Input 接口入参结构体

type Menu struct {
	Text       string                 `json:"text"`
	Key        string                 `json:"key"`
	Operations map[string]interface{} `json:"operations"`
}

type Meta

type Meta struct {
	Env       string `json:"env"`
	ScenesID  uint64 `json:"scenesID"`
	ConfigEnv string `json:"configEnv"`
}

func GetOpsInfo

func GetOpsInfo(opsData interface{}) (*Meta, error)

type OpMetaInfo

type OpMetaInfo struct {
	Meta Meta `json:"meta"`
}

type State

type State struct {
	// 小试一把
	AttemptTest            AttemptTestAll `json:"attemptTest"`
	ConfigManageNamespaces string         `json:"configManageNamespaces"`

	// 步骤信息
	StepId    uint64 `json:"stepId"`
	SceneId   uint64 `json:"sceneId"`
	IsFirstIn bool   `json:"isFirstIn"` // 是否从步骤中点击进入
}

Jump to

Keyboard shortcuts

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