data

package
v0.0.0-...-f1b0606 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

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

Data type

func Init

func Init(modelFile string, policyFile string) Data

func (Data) DeleteData

func (data Data) DeleteData(userId string, id int) error

func (Data) NewData

func (data Data) NewData(userId string, resourceId string) (DataItem, error)

func (Data) ReadData

func (data Data) ReadData(userEmail string) []DataItem

func (Data) UpdateData

func (data Data) UpdateData(userId string, id int, name string, description string) error

type DataItem

type DataItem struct {
	Id          int
	Name        string
	Description string
	ResourceId  string
	Permissions string
}

DataItem type

Jump to

Keyboard shortcuts

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