k8sac

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sAC

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

func Init

func Init(s Settings) (K8sAC, error)

func (K8sAC) Exec

func (k K8sAC) Exec(ctx context.Context, stopCh <-chan struct{})

type RoleBindingSettings

type RoleBindingSettings struct {
	Role     RoleSettings
	Subjects SubjectsSettings
}

type RoleSettings

type RoleSettings struct {
	Kind string
	Name string
}

type RuleSettings

type RuleSettings struct {
	NS           string
	RoleBindings []RoleBindingSettings
}

type Settings

type Settings struct {
	KubeConfig string
	Rules      []RuleSettings
	Logger     *logrus.Logger
}

type SubjectsSettings

type SubjectsSettings struct {
	Users           []string
	Groups          []string
	ServiceAccounts []string
}

Jump to

Keyboard shortcuts

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