resourceset

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 Name

type Name string

Name is the fully qualified name of the resource.

type Resource

type Resource string

type Set

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

func New

func New(v any, resource 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) ResourceName

func (m *Set) ResourceName(fieldName string) Name

Jump to

Keyboard shortcuts

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