Documentation
¶
Index ¶
- func AsCooperator(clusterId, fromUserId, shareUserId uint64) error
- func AsViewer(clusterId, fromUserId, shareUserId uint64) error
- func CoopSas(clusterId, fromUserId uint64) []string
- func GetFromCache(clusterId, fromUserId uint64) (*model.ClusterModel, *model.UserBaseModel, error)
- func IsCooperAs(clusterId, fromUserId, shareUserId uint64) bool
- func IsCooperOfCluster(clusterId uint64, saName string) bool
- func IsOwnerOfCluster(clusterId uint64, saName string) bool
- func IsValidOwner(clusterId, fromUserId uint64) bool
- func IsViewerAs(clusterId, fromUserId, shareUserId uint64) bool
- func IsViewerOfCluster(clusterId uint64, saName string) bool
- func NewClusterRoleBindingWatcher(kubeConfig string) *clusterRoleBindingWatcher
- func RemoveAllFromCooperator(clusterId, fromUserId uint64) error
- func RemoveAllFromViewer(clusterId, fromUserId uint64) error
- func RemoveFromCooperator(clusterId, fromUserId, shareUserId uint64) error
- func RemoveFromViewer(clusterId, fromUserId, shareUserId uint64) error
- func ViewSas(clusterId, fromUserId uint64) []string
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsCooperator ¶
func GetFromCache ¶
func GetFromCache(clusterId, fromUserId uint64) ( *model.ClusterModel, *model.UserBaseModel, error)
func IsCooperAs ¶
func IsCooperOfCluster ¶
func IsOwnerOfCluster ¶
func IsValidOwner ¶
func IsViewerAs ¶
func IsViewerOfCluster ¶
func NewClusterRoleBindingWatcher ¶
func NewClusterRoleBindingWatcher(kubeConfig string) *clusterRoleBindingWatcher
func RemoveAllFromCooperator ¶
func RemoveAllFromViewer ¶
func RemoveFromCooperator ¶
func RemoveFromViewer ¶
Types ¶
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.