psql

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataAccessor

type DataAccessor struct {
	Session db.Session
}

func (*DataAccessor) AddRolePermissions

func (d *DataAccessor) AddRolePermissions(roleId string, permissions []string) ([]string, error)

func (*DataAccessor) AddUserPermissions

func (d *DataAccessor) AddUserPermissions(userAccountId string, permissions []string) ([]string, error)

func (*DataAccessor) AddUserRoles

func (d *DataAccessor) AddUserRoles(userAccountId string, roleIds []string) ([]string, error)

func (*DataAccessor) DeleteRole

func (d *DataAccessor) DeleteRole(roleId string) error

func (*DataAccessor) GetRole

func (d *DataAccessor) GetRole(roleId *pb.RoleIdentifier) (*model.Role, error)

func (*DataAccessor) GetRolePermissions

func (d *DataAccessor) GetRolePermissions(roleId string) ([]*model.RolePermissionBinding, error)

func (*DataAccessor) GetUserPermissions

func (d *DataAccessor) GetUserPermissions(userAccountId string) ([]*model.UserPermissionBinding, error)

func (*DataAccessor) GetUserRoleBindings

func (d *DataAccessor) GetUserRoleBindings(userAccountId string) ([]*model.UserRoleBinding, error)

func (*DataAccessor) InsertRole

func (d *DataAccessor) InsertRole(role *model.Role) error

func (*DataAccessor) ListRoles

func (d *DataAccessor) ListRoles() ([]*model.Role, error)

func (*DataAccessor) RemoveRolePermissions

func (d *DataAccessor) RemoveRolePermissions(roleId string, permissions []string) ([]string, error)

func (*DataAccessor) RemoveUserPermissions

func (d *DataAccessor) RemoveUserPermissions(userAccountId string, permissions []string) ([]string, error)

func (*DataAccessor) RemoveUserRoles

func (d *DataAccessor) RemoveUserRoles(userAccountId string, roleIds []string) ([]string, error)

func (*DataAccessor) UpdateRole

func (d *DataAccessor) UpdateRole(roleId *pb.RoleIdentifier, role *model.Role) error

Jump to

Keyboard shortcuts

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