resourceset

package
v0.4.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: 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 ResourceSet

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

func New

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

func (*ResourceSet) Contains

func (r *ResourceSet) Contains(fieldName string) bool

func (*ResourceSet) Fields

func (r *ResourceSet) Fields() []string

func (*ResourceSet) RequiredPermission

func (r *ResourceSet) RequiredPermission() accesstypes.Permission

func (*ResourceSet) Resource

func (r *ResourceSet) Resource(fieldName string) accesstypes.Resource

Jump to

Keyboard shortcuts

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