list

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.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 ClickOperation

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

type Command

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

type CommandState

type CommandState struct {
	Params Params `json:"params"`
}

type ComponentList

type ComponentList struct {
	CtxBdl     protocol.ContextBundle
	Operations map[string]interface{} `json:"operations"`
	State      State                  `json:"state"`
	Props      Props                  `json:"props"`
	Data       []Org                  `json:"data"`
}

func (*ComponentList) RenderPublicOrgs

func (i *ComponentList) RenderPublicOrgs() error

func (*ComponentList) SetCtxBundle

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

type ExitOperation

type ExitOperation struct {
	Key     string `json:"key"`
	Text    string `json:"text"`
	Reload  bool   `json:"reload"`
	Confirm string `json:"confirm"`
	Meta    Meta   `json:"meta"`
}

type ExtraInfo

type ExtraInfo struct {
	Icon    string `json:"icon"`
	Text    string `json:"text"`
	ToolTip string `json:"tooltip"`
}

type ManageOperation

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

type Meta

type Meta struct {
	Id uint64 `json:"id"`
}

type OperationBase

type OperationBase struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

type Option

type Option struct {
	Key  string `json:"key"`
	Text string `json:"text"`
}

type Org

type Org struct {
	Id          uint64                 `json:"id"`
	Title       string                 `json:"title"`
	Description string                 `json:"description"`
	PrefixImg   string                 `json:"prefixImg"`
	ExtraInfos  []ExtraInfo            `json:"extraInfos"`
	Operations  map[string]interface{} `json:"operations"`
}

type Params

type Params struct {
	OrgName string `json:"orgName"`
}

type Props

type Props struct {
	PageSizeOptions []string `json:"pageSizeOptions"`
}

type State

type State struct {
	PageNo        int    `json:"pageNo"`
	PageSize      int    `json:"pageSize"`
	Total         int    `json:"total"`
	SearchEntry   string `json:"searchEntry"`
	SearchRefresh bool   `json:"searchRefresh"`
}

Jump to

Keyboard shortcuts

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