binding

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAccounts

func ListAccounts(ctx context.Context, client openapi.ClientInterface) (map[int64]types.Account, error)

func RemoveBinding

func RemoveBinding(ctx context.Context, b Binding, client kubernetes.Interface) error

func SaveBindingToFile

func SaveBindingToFile(ctx context.Context, dir string, b Binding, client kubernetes.Interface) (string, error)

Types

type Binding

type Binding struct {
	Kind        Kind
	Name        string
	Namespace   string
	SubjectName string
	AliUid      int64
}

func (Binding) String

func (b Binding) String() string

type Kind

type Kind string
var (
	KindRoleBinding        Kind = "RoleBinding"
	KindClusterRoleBinding Kind = "ClusterRoleBinding"
)

type RawBindings

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

func ListBindings

func ListBindings(ctx context.Context, kube kubernetes.Interface) (*RawBindings, error)

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