abac

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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

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

Authorize implements authorizer.Authorize

func (PolicyList) RulesFor

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