services

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Casbin

func Casbin() *casbin.Enforcer

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 LdapLogin

func LdapLogin(username, pass string) (*models.User, error)

func ListK8SCluster

func ListK8SCluster(p *models.PaginationQ, k *[]models.K8SCluster) (err error)

func ListPlatform

func ListPlatform(info request.PageInfo) (err error, list interface{}, total int64)

ListPlatform 云平台信息

func Login

func Login(l models.LoginUser) (models.User, error)

func ParamsMatch

func ParamsMatch(fullNameKey1 string, key2 string) bool

func ParamsMatchFunc

func ParamsMatchFunc(args ...interface{}) (interface{}, error)

func PassLogin

func PassLogin(username, pass string) (*models.User, error)

func UserGet

func UserGet(where string, args ...interface{}) (*models.User, error)

func UserGetByUsername

func UserGetByUsername(username string) (*models.User, error)

func UserRegister

func UserRegister(u models.User) (userInter models.User, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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