abac

package
v1.28.14 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 59

Documentation

Overview

Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyList added in v1.15.0

type PolicyList []*abac.Policy

PolicyList is simply a slice of Policy structs.

func NewFromFile

func NewFromFile(path string) (PolicyList, error)

NewFromFile attempts to create a policy list from the given file.

TODO: Have policies be created via an API call and stored in REST storage.

func (PolicyList) Authorize added in v1.15.0

Authorize implements authorizer.Authorize

func (PolicyList) RulesFor added in v1.15.0

RulesFor returns rules for the given user and namespace.

Jump to

Keyboard shortcuts

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