cluster_scope

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsCooperator

func AsCooperator(clusterId, fromUserId, shareUserId uint64) error

func AsViewer

func AsViewer(clusterId, fromUserId, shareUserId uint64) error

func CoopSas

func CoopSas(clusterId, fromUserId uint64) []string

func GetFromCache

func GetFromCache(clusterId, fromUserId uint64) (
	*model.ClusterModel, *model.UserBaseModel, error)

func IsCooperAs

func IsCooperAs(clusterId, fromUserId, shareUserId uint64) bool

func IsCooperOfCluster

func IsCooperOfCluster(clusterId uint64, saName string) bool

func IsOwnerOfCluster

func IsOwnerOfCluster(clusterId uint64, saName string) bool

func IsValidOwner

func IsValidOwner(clusterId, fromUserId uint64) bool

func IsViewerAs

func IsViewerAs(clusterId, fromUserId, shareUserId uint64) bool

func IsViewerOfCluster

func IsViewerOfCluster(clusterId uint64, saName string) bool

func NewClusterRoleBindingWatcher

func NewClusterRoleBindingWatcher(kubeConfig string) *clusterRoleBindingWatcher

func RemoveAllFromCooperator

func RemoveAllFromCooperator(clusterId, fromUserId uint64) error

func RemoveAllFromViewer

func RemoveAllFromViewer(clusterId, fromUserId uint64) error

func RemoveFromCooperator

func RemoveFromCooperator(clusterId, fromUserId, shareUserId uint64) error

func RemoveFromViewer

func RemoveFromViewer(clusterId, fromUserId, shareUserId uint64) error

func ViewSas

func ViewSas(clusterId, fromUserId uint64) []string

Types

type Supervisor

type Supervisor struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL