MCPcopy
hub / github.com/1Panel-dev/KubePi / Interface

Interface Interface

pkg/kubernetes/kubernetes.go:30–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28)
29
30type Interface interface {
31 Ping() error
32 Version() (*version.Info, error)
33 VersionMinor() (int, error)
34 Config() (*rest.Config, error)
35 Client() (*kubernetes.Clientset, error)
36 HasPermission(attributes v1.ResourceAttributes) (PermissionCheckResult, error)
37 CreateCommonUser(commonName string) ([]byte, error)
38 CreateDefaultClusterRoles() error
39 GetUserNamespaceNames(username string, options ...interface{}) ([]string, error)
40 CanVisitAllNamespace(username string) (bool, error)
41 IsNamespacedResource(resourceName string) (bool, error)
42 CleanManagedClusterRole() error
43 CleanManagedClusterRoleBinding(username string) error
44 CleanManagedRoleBinding(username string) error
45 CleanAllRBACResource() error
46 CreateOrUpdateClusterRoleBinding(clusterRoleName string, username string, builtIn bool) error
47 CreateOrUpdateRolebinding(namespace string, clusterRoleName string, username string, builtIn bool) error
48 CreateAppMarketCRD() error
49}
50
51type Kubernetes struct {
52 *v1Cluster.Cluster

Callers 5

getExtraClusterInfoFunction · 0.65
ConfigForUserFunction · 0.65
getExtraClusterInfoFunction · 0.65
checkRequiredPermissionsFunction · 0.65
updateUserCertMethod · 0.65

Implementers 1

Kubernetespkg/kubernetes/kubernetes.go

Calls

no outgoing calls

Tested by

no test coverage detected