siteformmodal

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SiteNameLength = 30
)
View Source
const (
	SiteNameMatchPattern = "^[a-z][a-z0-9-]*[a-z0-9]$"
)

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