resourcerolemap

package
v0.0.0-...-b8d2545 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceRoleMap

type ResourceRoleMap struct {
	Id       int    `db:"id"`
	Resource string `db:"resource"`
	Role     string `db:"role"`
}

ResourceRoleMap is the table property

type Storage

type Storage mysqldb.Storage

func (*Storage) GetObjListOwner

func (s *Storage) GetObjListOwner(resource, role string) ([]string, error)

GetObjListOwner fetches list of objects who has access to this resource

 it purposely uses a list to prepare any future update from the table,
	e.g. updates on the table schema which leads to a multiple records as the result

Jump to

Keyboard shortcuts

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