configitemformmodal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeCommon = "COMMON"
	ScopePublic = "public"
	ScopeSite   = "SITE"
)
View Source
const (
	CfgItemKeyMatchPattern = "^[a-zA-Z-._][a-zA-Z0-9-._]*$"
	CfgItemKeyRegexpError  = "可输入英文字母、数字、中划线、下划线或点, 不能以数字开头"
)

Variables

View Source
var (
	CfgItemKeyRegexp = fmt.Sprintf("/%v/", CfgItemKeyMatchPattern)
)

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ComponentFormModal

type ComponentFormModal struct {
	// contains filtered or unexported fields
}

func (*ComponentFormModal) OperateRendering

func (c *ComponentFormModal) OperateRendering(orgID, configSetID int64, identity apistructs.Identity) error

func (*ComponentFormModal) OperateSubmit

func (c *ComponentFormModal) OperateSubmit(configSetID int64, identity apistructs.Identity) error

func (*ComponentFormModal) SetBundle

func (c *ComponentFormModal) SetBundle(ctxBundle protocol.ContextBundle) error

func (*ComponentFormModal) SetComponent

func (c *ComponentFormModal) SetComponent(component *apistructs.Component) error

type ConfigSetCreateCommon

type ConfigSetCreateCommon struct {
	Key   string `json:"key"`
	Value string `json:"value"`
	Scope string `json:"scope"`
}

type ConfigSetCreateSite

type ConfigSetCreateSite struct {
	Key   string  `json:"key"`
	Value string  `json:"value"`
	Scope string  `json:"scope"`
	Sites []int64 `json:"sites"`
}

type ConfigSetUpdate

type ConfigSetUpdate struct {
	ID    int64  `json:"id"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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