Versions in this module Expand all Collapse all v1 v1.0.2 May 5, 2022 Changes in this version + const DateLocalTimeFormat + const MsecLocalTimeFormat + const SecLocalTimeFormat + func InitError() + func InitLdap(ldap LdapSection) + func LdapReq(user, pass string) (*ldap.SearchResult, error) + type CasBinInReceive struct + CasBinInfos []CasBinInfo + Role string + type CasBinInfo struct + Method string + Path string + type CasBinModel struct + Method string + PType string + Path string + Role string + type Casbin struct + ModelPath string + type ClusterIds struct + Data interface{} + type ClusterNodesStatus struct + CpuCapacityCore float64 + CpuCore float64 + CpuUsage float64 + Deployment int + MemoryTotal float64 + MemoryUsage float64 + MemoryUsed float64 + Namespace int + NodeCount int + Pod int + Ready int + UnReady int + type ClusterVersion struct + Version string + func (v ClusterVersion) TableName() string + type Dept struct + Children []Dept + Name string + ParentId uint + Sort int + Users []User + func (m Dept) TableName() string + type GModel struct + CreatedAt LocalTime + DeletedAt gorm.DeletedAt + ID uint + UpdatedAt LocalTime + func (GModel) TableName(name string) string + type K8SCluster struct + ClusterName string + ClusterVersion string + KubeConfig string + NodeNumber int + func (ks K8SCluster) TableName() string + type LdapSection struct + Attributes ldapAttributes + AuthFilter string + BaseDn string + BindPass string + BindUser string + CoverAttributes bool + Enable bool + Host string + Port int + StartTLS bool + TLS bool + var LDAP LdapSection + type LocalTime struct + func (t *LocalTime) Scan(v interface{}) error + func (t *LocalTime) UnmarshalJSON(data []byte) (err error) + func (t LocalTime) DateString() string + func (t LocalTime) MarshalJSON() ([]byte, error) + func (t LocalTime) String() string + func (t LocalTime) Value() (driver.Value, error) + type LoginUser struct + Email string + Ldap bool + Password string + type Menu struct + Children []Menu + Creator string + Icon string + Name string + ParentId uint + Path string + Roles []Role + Sort int + func (m Menu) TableName() string + type PaginationQ struct + Keyword string + Page int + Size int + Total int64 + type Role struct + Desc string + Menus []Menu + Name string + Users []User + func (m Role) TableName() string + type User struct + Avatar string + CreateBy string + Dept Dept + DeptId uint64 + Email string + NickName string + Password string + Phone string + Role Role + RoleId uint + Status *bool + UID string + UserName string + func (u User) TableName() string