resourceset

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package resourceset is a set of resources that provides a way to map permissions to fields in a struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

func New

func New(v any, resource accesstypes.Resource, requiredPermission accesstypes.Permission) (*Set, error)

func (*Set) Contains

func (m *Set) Contains(fieldName string) bool

func (*Set) Fields

func (m *Set) Fields() []string

func (*Set) RequiredPermission

func (m *Set) RequiredPermission() accesstypes.Permission

func (*Set) Resource added in v0.2.0

func (m *Set) Resource(fieldName string) accesstypes.Resource

Jump to

Keyboard shortcuts

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