Documentation
¶
Index ¶
- Variables
- 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
- type 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
Constants ¶
This section is empty.
Variables ¶
View Source
var IDLE = "IDLE"
View Source
var RUNNING = "RUNNING"
Functions ¶
func CreateOrUpdateRoleBindingINE ¶
func CreateOrUpdateRoleBindingINE(client *clientgo.GoClient, ns, saName, saNs, rb, role string) error
nocalhost use nocalhost-saName for role binding storage container and nocalhost create a role binding for each dev space
func CreateUsers ¶
func CreateUsers(ctx context.Context, list []*model.UserBaseModel) int
func CronJobTrigger ¶
func CronJobTrigger()
func ToMailMapping ¶
Types ¶
type Report ¶
func DoSyncFromLDAP ¶
func (*Report) ActivateSync ¶
We generally only care about valid updates, so if these three are 0, then the last valid update data is taken
type Service ¶
type Service struct { UserSvc *user.User ClusterSvc *cluster.Cluster ApplicationSvc *application.Application ApplicationClusterSvc *application_cluster.ApplicationCluster ClusterUserSvc *cluster_user.ClusterUser PrePullSvc *pre_pull.PrePull ApplicationUserSvc *application_user.ApplicationUser LdapSvc *ldap.Ldap }
Service struct
var ( // Svc global service var Svc *Service )
func (*Service) AuthorizeClusterToUser ¶
func (*Service) AuthorizeNsToDefaultSa ¶
func (*Service) AuthorizeNsToUser ¶
func (*Service) PrepareServiceAccountAndClientGo ¶
func (*Service) UnAuthorizeClusterToUser ¶
Click to show internal directories.
Click to hide internal directories.