guardian

package
v5.0.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardGuardian

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

func NewDashboardGuardian

func NewDashboardGuardian(dashId int64, orgId int64, user *m.SignedInUser) *DashboardGuardian

func (*DashboardGuardian) CanAdmin

func (g *DashboardGuardian) CanAdmin() (bool, error)

func (*DashboardGuardian) CanEdit

func (g *DashboardGuardian) CanEdit() (bool, error)

func (*DashboardGuardian) CanSave

func (g *DashboardGuardian) CanSave() (bool, error)

func (*DashboardGuardian) CanView

func (g *DashboardGuardian) CanView() (bool, error)

func (*DashboardGuardian) CheckPermissionBeforeRemove

func (g *DashboardGuardian) CheckPermissionBeforeRemove(permission m.PermissionType, aclIdToRemove int64) (bool, error)

func (*DashboardGuardian) CheckPermissionBeforeUpdate

func (g *DashboardGuardian) CheckPermissionBeforeUpdate(permission m.PermissionType, updatePermissions []*m.DashboardAcl) (bool, error)

func (*DashboardGuardian) GetAcl

func (g *DashboardGuardian) GetAcl() ([]*m.DashboardAclInfoDTO, error)

GetAcl returns dashboard acl

func (*DashboardGuardian) HasPermission

func (g *DashboardGuardian) HasPermission(permission m.PermissionType) (bool, error)

Jump to

Keyboard shortcuts

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