Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Ladicle/kubectl-rolesum
/ functions
Functions
41 in github.com/Ladicle/kubectl-rolesum
⨍
Functions
41
◇
Types & classes
7
↓ 14 callers
Function
tabHead
(header string)
pkg/util/printer/converter.go:98
↓ 8 callers
Function
mark
(flag bool)
pkg/util/printer/converter.go:75
↓ 5 callers
Method
String
()
pkg/explorer/resource.go:15
↓ 4 callers
Method
BlankLine
()
pkg/util/printer/printer.go:145
↓ 4 callers
Function
blank2Asterisk
(s string)
pkg/util/printer/converter.go:31
↓ 4 callers
Function
join
(list []string)
pkg/util/printer/converter.go:52
↓ 3 callers
Function
rule2sbjpl
(ctx context.Context, client *kubernetes.Clientset, rules []rbacv1.PolicyRule)
pkg/explorer/explorer.go:130
↓ 2 callers
Method
PrintHeader
(header string)
pkg/util/printer/printer.go:161
↓ 2 callers
Method
PrintPolicies
(sbjrs []*explorer.SubjectRole)
pkg/util/printer/printer.go:51
↓ 2 callers
Method
PrintSubject
(sub *rbac.Subject)
pkg/util/printer/printer.go:28
↓ 2 callers
Method
Run
()
cmd/cmd.go:109
↓ 2 callers
Method
SetVerbs
(verbs []string)
pkg/explorer/apipolicy.go:36
↓ 2 callers
Method
Validate
(cmd *cobra.Command, args []string)
cmd/cmd.go:87
↓ 2 callers
Function
colorBool
(flag bool)
pkg/util/printer/converter.go:68
↓ 2 callers
Function
containSubject
containSubject returns true if the specified subject is on the list.
pkg/explorer/subjutil.go:46
↓ 2 callers
Function
equalStrings
(a, b []string)
pkg/explorer/stringutil.go:3
↓ 2 callers
Function
joinOrDash
(list []string)
pkg/util/printer/converter.go:45
↓ 2 callers
Method
newTabwriter
()
pkg/util/printer/printer.go:149
↓ 1 callers
Method
ClusterSbjRoles
ClusterSbjRoles explores bound cluster roles to the specified subject.
pkg/explorer/explorer.go:101
↓ 1 callers
Function
DefaultPrettyPrinter
()
pkg/util/printer/printer.go:22
↓ 1 callers
Method
NamespacedSbjRoles
NamespacedSbjRoles explores bound namespaced roles to the specified subject.
pkg/explorer/explorer.go:39
↓ 1 callers
Function
NewPolicyExplorer
(client *kubernetes.Clientset)
pkg/explorer/explorer.go:19
↓ 1 callers
Function
NewResourceAPIPolicy
(res Resource, rule rbacv1.PolicyRule)
pkg/explorer/apipolicy.go:25
↓ 1 callers
Method
PrintSA
(sa *core.ServiceAccount)
pkg/util/printer/printer.go:38
↓ 1 callers
Function
apiVerb2CheckTable
(flag uint)
pkg/util/printer/converter.go:56
↓ 1 callers
Function
joinCap
(caps []v1.Capability)
pkg/util/printer/converter.go:82
↓ 1 callers
Function
joinFsType
(fsts []v1beta1.FSType)
pkg/util/printer/converter.go:90
↓ 1 callers
Function
joinOrAsterisk
(list []string)
pkg/util/printer/converter.go:38
↓ 1 callers
Method
printAPIPolicy
(apips []*explorer.ResourceAPIPolicy)
pkg/util/printer/printer.go:75
↓ 1 callers
Method
printPSP
(psps []*policy.PodSecurityPolicy)
pkg/util/printer/printer.go:104
↓ 1 callers
Function
rule2res
rule2res converts Rule into the Resource list.
pkg/explorer/resource.go:33
↓ 1 callers
Function
sameSubject
sameSubject returns true if s1 equals s2.
pkg/explorer/subjutil.go:56
↓ 1 callers
Function
subjectClusterRoleBindings
subjectClusterRoles retrieve ClusterRoleBindings for the specified subject.
pkg/explorer/subjutil.go:30
↓ 1 callers
Function
subjectRoleBindings
subjectRoles retrieve RoleBindings for the specified subject.
pkg/explorer/subjutil.go:14
Function
CheckErr
(err error)
pkg/util/cmd/error.go:10
Function
NewRolesumCmd
()
cmd/cmd.go:51
Method
PrintRolesums
(sbjrs []*explorer.SubjectRole)
pkg/util/printer/printer.go:45
Function
TestValidate
(t *testing.T)
cmd/cmd_test.go:9
Function
init
()
main.go:10
Function
main
()
main.go:15
Method
printHeaderL2
(header string)
pkg/util/printer/printer.go:165