resourcestore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

resourcestore package provides a store to store permission resource mappings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New() *Store

func (*Store) Add

func (s *Store) Add(res accesstypes.Resource, permission accesstypes.Permission, fields []string) error

func (*Store) Fields

func (s *Store) Fields(parent accesstypes.Resource, permission accesstypes.Permission) []string

func (*Store) PermissionsWithFields

func (s *Store) PermissionsWithFields(parent accesstypes.Resource) map[accesstypes.Permission][]string

Jump to

Keyboard shortcuts

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