siteformmodal

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SiteNameMatchPattern = "^[a-z][a-z0-9-]*[a-z0-9]$"
	SitNameRegexpError   = "可输入小写字母、数字、中划线; 必须以小写字母开头, 以小写字母或数字结尾"
)
View Source
const (
	SiteNameLength = 30
)

Variables

View Source
var (
	SiteNameMatchRegexp = fmt.Sprintf("/%v/", SiteNameMatchPattern)
)
View Source
var (
	SiteNameReservedWordMap = map[string]bool{
		"public": true,
	}
)

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 int64, identity apistructs.Identity) error

func (*ComponentFormModal) OperateSubmit

func (c *ComponentFormModal) OperateSubmit(orgID 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 SiteFormCreate

type SiteFormCreate struct {
	SiteFormSubmitBase
	RelatedCluster int64 `json:"relatedCluster"`
}

type SiteFormSubmitBase

type SiteFormSubmitBase struct {
	ID       int64  `json:"id"`
	SiteName string `json:"siteName"`
	Desc     string `json:"desc"`
}

Jump to

Keyboard shortcuts

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