MCPcopy
hub / github.com/derailed/k9s / Authorizer

Interface Authorizer

internal/client/types.go:84–87  ·  view source on GitHub ↗

Authorizer checks what a user can or cannot do to a resource.

Source from the content-addressed store, hash-verified

82
83// Authorizer checks what a user can or cannot do to a resource.
84type Authorizer interface {
85 // CanI returns true if the user can use these actions for a given resource.
86 CanI(ns string, gvr *GVR, n string, verbs []string) (bool, error)
87}
88
89// Connection represents a Kubernetes apiserver connection.
90type Connection interface {

Callers 8

checkAccessMethod · 0.65
editResFunction · 0.65
switchNamespaceCmdMethod · 0.65
namespaceActionsMethod · 0.65
hasMetricsMethod · 0.65
SetImagesMethod · 0.65
SetImagesMethod · 0.65
scaleResFunction · 0.65

Implementers 3

APIClientinternal/client/client.go
conninternal/dao/container_test.go
mockConnectioninternal/config/mock/test_helpers.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…