Documentation ¶
Index ¶
- func DeleteClusterForProduct(clusterId string) error
- func DeleteNamespaceForProduct(namespace string) error
- func In(s string, l []string) bool
- func PatchNamespaceForProduct(clusterId string) error
- func SliceInsert(s []menu, index int, value menu) []menu
- func UniqueList(l []string) []string
- type Cascade
- type ClusterPluginResource
- type ClusterResource
- func (r *ClusterResource) Create(c *gin.Context) (err error)
- func (r *ClusterResource) Delete() (err error)
- func (r *ClusterResource) DeleteClusterForUser(clusterId string) error
- func (r *ClusterResource) DeleteNamespaceForNamespace(clusterId string) error
- func (r *ClusterResource) Get() (interface{}, error)
- func (r *ClusterResource) List() (interface{}, error)
- func (r *ClusterResource) Update(c *gin.Context) (err error)
- type ConfigResource
- func (r *ConfigResource) Create(c *gin.Context) (err error)
- func (r *ConfigResource) Delete() (err error)
- func (r *ConfigResource) Get() (interface{}, error)
- func (r *ConfigResource) LDAPTest(c *gin.Context) (err error)
- func (r *ConfigResource) List() (interface{}, error)
- func (r *ConfigResource) Update(c *gin.Context) (err error)
- type MenuResource
- type PlatformRoleResource
- func (r *PlatformRoleResource) Create(c *gin.Context) (err error)
- func (r *PlatformRoleResource) Delete() (err error)
- func (r *PlatformRoleResource) Get() (interface{}, error)
- func (r *PlatformRoleResource) List() (interface{}, error)
- func (r *PlatformRoleResource) ListPlatformRoleTree() (interface{}, error)
- func (r *PlatformRoleResource) Update(c *gin.Context) (err error)
- type PluginResource
- type ProductResource
- func (r *ProductResource) CascadeAll() (interface{}, error)
- func (r *ProductResource) CascadeCluster() (interface{}, error)
- func (r *ProductResource) Create(c *gin.Context) (err error)
- func (r *ProductResource) Delete() (err error)
- func (r *ProductResource) Get() (interface{}, error)
- func (r *ProductResource) List() (interface{}, error)
- func (r *ProductResource) TreeClusterNamespace() (interface{}, error)
- func (r *ProductResource) Update(c *gin.Context) (err error)
- type ProductResponse
- type TemplateResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClusterForProduct ¶
从产品表里删除对应的cluster
func DeleteNamespaceForProduct ¶
从产品表里删除对应的namespace
func PatchNamespaceForProduct ¶
从产品表中删除集群对应的Namespace
func SliceInsert ¶
func SliceInsert(s []menu, index int, value menu) []menu
func UniqueList ¶
Types ¶
type ClusterPluginResource ¶
type ClusterPluginResource struct { Params *handle.Resources PostData *common.PluginDB Plugin string `json:"plugin "` }
func (*ClusterPluginResource) Install ¶
func (r *ClusterPluginResource) Install() error
func (*ClusterPluginResource) List ¶
func (r *ClusterPluginResource) List() (interface{}, error)
func (*ClusterPluginResource) UnInstall ¶
func (r *ClusterPluginResource) UnInstall() error
type ClusterResource ¶
func (*ClusterResource) Delete ¶
func (r *ClusterResource) Delete() (err error)
func (*ClusterResource) DeleteClusterForUser ¶
func (r *ClusterResource) DeleteClusterForUser(clusterId string) error
从User表中删除对应的Cluster
func (*ClusterResource) DeleteNamespaceForNamespace ¶
func (r *ClusterResource) DeleteNamespaceForNamespace(clusterId string) error
从namespace表中删除对应的namespace
func (*ClusterResource) Get ¶
func (r *ClusterResource) Get() (interface{}, error)
func (*ClusterResource) List ¶
func (r *ClusterResource) List() (interface{}, error)
type ConfigResource ¶
func (*ConfigResource) Delete ¶
func (r *ConfigResource) Delete() (err error)
func (*ConfigResource) Get ¶
func (r *ConfigResource) Get() (interface{}, error)
func (*ConfigResource) List ¶
func (r *ConfigResource) List() (interface{}, error)
type MenuResource ¶
type MenuResource struct { Params *handle.Resources PostData *common.PlatformRoleDB }
func (*MenuResource) Get ¶
func (r *MenuResource) Get() (interface{}, error)
type PlatformRoleResource ¶
type PlatformRoleResource struct { Params *handle.Resources PostData *common.PlatformRoleDB }
func (*PlatformRoleResource) Create ¶
func (r *PlatformRoleResource) Create(c *gin.Context) (err error)
func (*PlatformRoleResource) Delete ¶
func (r *PlatformRoleResource) Delete() (err error)
func (*PlatformRoleResource) Get ¶
func (r *PlatformRoleResource) Get() (interface{}, error)
func (*PlatformRoleResource) List ¶
func (r *PlatformRoleResource) List() (interface{}, error)
func (*PlatformRoleResource) ListPlatformRoleTree ¶
func (r *PlatformRoleResource) ListPlatformRoleTree() (interface{}, error)
type PluginResource ¶
func (*PluginResource) Delete ¶
func (r *PluginResource) Delete() (err error)
func (*PluginResource) Get ¶
func (r *PluginResource) Get() (interface{}, error)
func (*PluginResource) List ¶
func (r *PluginResource) List() (interface{}, error)
type ProductResource ¶
func (*ProductResource) CascadeAll ¶
func (r *ProductResource) CascadeAll() (interface{}, error)
级联查询所有产品线--集群--Namespace
func (*ProductResource) CascadeCluster ¶
func (r *ProductResource) CascadeCluster() (interface{}, error)
根据用户权限的级联列出产品线--集群--Namespace
func (*ProductResource) Delete ¶
func (r *ProductResource) Delete() (err error)
func (*ProductResource) Get ¶
func (r *ProductResource) Get() (interface{}, error)
func (*ProductResource) List ¶
func (r *ProductResource) List() (interface{}, error)
func (*ProductResource) TreeClusterNamespace ¶
func (r *ProductResource) TreeClusterNamespace() (interface{}, error)
级联列出集群--Namespace
type ProductResponse ¶
type TemplateResource ¶
type TemplateResource struct { Params *handle.Resources PostData *common.TemplateDB }
func (*TemplateResource) Delete ¶
func (r *TemplateResource) Delete() (err error)
func (*TemplateResource) Get ¶
func (r *TemplateResource) Get() (interface{}, error)
func (*TemplateResource) List ¶
func (r *TemplateResource) List() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.