scanuserpermissions

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCmd

func SetupCmd(rootCmd *cobra.Command)

Types

type Binding

type Binding struct {
	Kind        BindingKind
	Name        string
	SubjectName string
	AliUid      int
}

type BindingKind

type BindingKind string
var (
	BindingKindRoleBinding        BindingKind = "RoleBinding"
	BindingKindClusterRoleBinding BindingKind = "ClusterRoleBinding"
)

type Option

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

type RawBindings

type RawBindings struct {
	RoleBindings        []rbacv1.RoleBinding
	ClusterRoleBindings []rbacv1.ClusterRoleBinding
}

func (*RawBindings) AliUserBindings

func (bs *RawBindings) AliUserBindings() RawBindings

func (*RawBindings) SortByUid

func (bs *RawBindings) SortByUid() []Binding

Jump to

Keyboard shortcuts

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