createProject

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type Command

type Command struct {
	Key     string `json:"key"`
	Target  string `json:"target"`
	JumpOut bool   `json:"jumpOut"`
}

type ComponentProjectCreation

type ComponentProjectCreation struct {
	Version    string                 `json:"version,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Type       string                 `json:"type,omitempty"`
	Props      Props                  `json:"props,omitempty"`
	State      State                  `json:"state,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentProjectCreation) GenComponentState

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

GenComponentState 获取state

func (*ComponentProjectCreation) SetCtxBundle

SetCtxBundle 设置bundle

type Operation

type Operation struct {
	Key     string  `json:"key"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command"`
}

type Props

type Props struct {
	Visible bool   `json:"visible"`
	Text    string `json:"text"`
	Type    string `json:"type"`
}

type State

type State struct {
	IsEmpty bool `json:"isEmpty"`
}

Jump to

Keyboard shortcuts

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