privileges

package
v0.0.0-...-887f819 Latest Latest
Warning

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

Go to latest
Published: May 4, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserPrivileges

type UserPrivileges struct {
	User string
	// contains filtered or unexported fields
}

UserPrivileges implements privilege.Checker interface. This is used to check privilege for the current user.

func (*UserPrivileges) Check

func (p *UserPrivileges) Check(ctx context.Context, db *model.DBInfo, tbl *model.TableInfo, privilege mysql.PrivilegeType) (bool, error)

Check implements Checker.Check interface.

func (*UserPrivileges) ShowGrants

func (p *UserPrivileges) ShowGrants(ctx context.Context, user string) ([]string, error)

ShowGrants implements privilege.Checker ShowGrants interface.

Jump to

Keyboard shortcuts

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