Versions in this module Expand all Collapse all v1 v1.0.1 Nov 9, 2023 v1.0.0 Nov 9, 2023 Changes in this version + var IDLE = "IDLE" + var RUNNING = "RUNNING" + func CreateNamespaceINE(client *clientgo.GoClient, ns string) error + func CreateOrUpdateClusterRoleBindingINE(client *clientgo.GoClient, saName, saNs, crb, role string) error + func CreateOrUpdateRoleBindingINE(client *clientgo.GoClient, ns, saName, saNs, rb, role string) error + func CreateUsers(ctx context.Context, list []*model.UserBaseModel) int + func CronJobTrigger() + func Init() + func RemoveClusterRoleBindingIfPresent(client *clientgo.GoClient, saName, saNs, crb string) error + func RemoveRoleBindingIfPresent(client *clientgo.GoClient, ns, saName, saNs, rb string) error + func StartJob() + func ToMailMapping(es []*ldap.Entry, emailAttr string) map[string]*ldap.Entry + type Report struct + Costs int64 + Deletes int + Entries int + Fails int + Inserts int + Updates int + func DoSyncFromLDAP(ctx context.Context, ldapServer string, tls, md5 bool, ldapGen uint64, ...) (*Report, error) + func (r *Report) ActivateSync(deletes, inserts, updates int) + func (r *Report) Sum(r1 *Report) + type Service struct + ApplicationClusterSvc *application_cluster.ApplicationCluster + ApplicationSvc *application.Application + ApplicationUserSvc *application_user.ApplicationUser + ClusterSvc *cluster.Cluster + ClusterUserSvc *cluster_user.ClusterUser + LdapSvc *ldap.Ldap + PrePullSvc *pre_pull.PrePull + UserSvc *user.User + var Svc *Service + func New() (s *Service) + func (s *Service) AuthorizeClusterToUser(clusterId, userId uint64) error + func (s *Service) AuthorizeNsToDefaultSa(clusterId, userId uint64, ns string) error + func (s *Service) AuthorizeNsToUser(clusterId, userId uint64, ns string) error + func (s *Service) Close() + func (s *Service) Ping() error + func (s *Service) PrepareServiceAccountAndClientGo(clusterId, userId uint64) (clientGo *clientgo.GoClient, saName string, err error) + func (s *Service) UnAuthorizeClusterToUser(clusterId, userId uint64) error + func (s *Service) UnAuthorizeNsToUser(clusterId, userId uint64, ns string) error