Documentation ¶
Index ¶
- func CleanExpiredProjectInfo(expiredTimeSeconds int64)
- func Contains(list []string, s string) bool
- func FetchUserProjectList(token string, url string) []string
- func GetAllManagedClusterNames() map[string]string
- func GetUserName(token string, url string) string
- func GetUserProjectList(token string) ([]string, bool)
- func InitAllManagedClusterNames()
- func InitUserProjectInfo()
- func ModifyMetricsQueryParams(req *http.Request, url string)
- func UpdateUserProject(up UserProject)
- func WatchManagedCluster(clusterClient clusterclientset.Interface)
- type UserProject
- type UserProjectInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanExpiredProjectInfo ¶
func CleanExpiredProjectInfo(expiredTimeSeconds int64)
func FetchUserProjectList ¶
func GetUserName ¶
func GetUserProjectList ¶
func InitAllManagedClusterNames ¶
func InitAllManagedClusterNames()
func InitUserProjectInfo ¶
func InitUserProjectInfo()
func ModifyMetricsQueryParams ¶
ModifyMetricsQueryParams will modify request url params for query metrics
func UpdateUserProject ¶
func UpdateUserProject(up UserProject)
func WatchManagedCluster ¶
func WatchManagedCluster(clusterClient clusterclientset.Interface)
WatchManagedCluster will watch and save managedcluster when create/update/delete managedcluster
Types ¶
type UserProject ¶
func NewUserProject ¶
func NewUserProject(userName string, token string, projects []string) UserProject
type UserProjectInfo ¶
type UserProjectInfo struct { sync.RWMutex ProjectInfo map[string]UserProject }
Click to show internal directories.
Click to hide internal directories.