Documentation ¶
Index ¶
- func Casbin() *casbin.Enforcer
- func CreateCloudAccount(account *cmdb.CloudPlatform) (err error)
- func CreateK8SCluster(cluster models.K8SCluster) (err error)
- func DelCluster(ids models.ClusterIds) (err error)
- func GetK8sCluster(id uint) (K8sCluster models.K8SCluster, err error)
- func LdapLogin(username, pass string) (*models.User, error)
- func ListK8SCluster(p *models.PaginationQ, k *[]models.K8SCluster) (err error)
- func ListPlatform(info request.PageInfo) (err error, list interface{}, total int64)
- func Login(l models.LoginUser) (models.User, error)
- func ParamsMatch(fullNameKey1 string, key2 string) bool
- func ParamsMatchFunc(args ...interface{}) (interface{}, error)
- func PassLogin(username, pass string) (*models.User, error)
- func UserGet(where string, args ...interface{}) (*models.User, error)
- func UserGetByUsername(username string) (*models.User, error)
- func UserRegister(u models.User) (userInter models.User, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCloudAccount ¶
func CreateCloudAccount(account *cmdb.CloudPlatform) (err error)
CreateCloudAccount 创建云账号
func CreateK8SCluster ¶
func CreateK8SCluster(cluster models.K8SCluster) (err error)
func DelCluster ¶
func DelCluster(ids models.ClusterIds) (err error)
func GetK8sCluster ¶
func GetK8sCluster(id uint) (K8sCluster models.K8SCluster, err error)
func ListK8SCluster ¶
func ListK8SCluster(p *models.PaginationQ, k *[]models.K8SCluster) (err error)
func ListPlatform ¶
ListPlatform 云平台信息
func ParamsMatch ¶
func ParamsMatchFunc ¶
func ParamsMatchFunc(args ...interface{}) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.