Documentation ¶
Index ¶
- Constants
- type Namespace
- func (n *Namespace) Create(createReq *apistructs.NamespaceCreateRequest) (int64, error)
- func (n *Namespace) CreateRelation(createReq *apistructs.NamespaceRelationCreateRequest) error
- func (n *Namespace) DeleteNamespace(permission *permission.Permission, name string, ...) error
- func (n *Namespace) DeleteRelation(permission *permission.Permission, locale *i18n.LocaleResource, ...) error
- func (n *Namespace) FixDataErr(namespaceName, projectID string) error
- func (n *Namespace) GenerateAppExtraInfo(applicationID, projectID int64) string
- type Option
Constants ¶
View Source
const ( DynamicNamespaceMaxLength = 32 StaticNamespaceMaxLength = 255 NamespaceFormat = "^[a-zA-Z0-9\\-]+$" NotDeleteValue = "N" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace 命名空间参数
func (*Namespace) Create ¶
func (n *Namespace) Create(createReq *apistructs.NamespaceCreateRequest) (int64, error)
Create 创建 namespace
func (*Namespace) CreateRelation ¶
func (n *Namespace) CreateRelation(createReq *apistructs.NamespaceRelationCreateRequest) error
CreateRelation 创建 namespace 关联关系
func (*Namespace) DeleteNamespace ¶
func (n *Namespace) DeleteNamespace(permission *permission.Permission, name string, identityInfo apistructs.IdentityInfo) error
DeleteNamespace 删除 namespace
func (*Namespace) DeleteRelation ¶
func (n *Namespace) DeleteRelation(permission *permission.Permission, locale *i18n.LocaleResource, name, userID string) error
DeleteRelation 删除 namespace 关联关系
func (*Namespace) FixDataErr ¶
FixDataErr 修复命名空间不全
func (*Namespace) GenerateAppExtraInfo ¶
Click to show internal directories.
Click to hide internal directories.