Documentation
¶
Index ¶
- Variables
- type Mode
- type Policy
- func (p Policy) AuthorizeAdmin(database string, statement sqlguard.Statement) error
- func (p Policy) AuthorizeDML(database string, statement sqlguard.Statement) error
- func (p Policy) AuthorizeExec(database string, statement sqlguard.Statement) error
- func (p Policy) AuthorizeQuery(statement sqlguard.Statement) error
- func (p Policy) DeniedSchemas() []string
- func (p Policy) Mode() Mode
- func (p Policy) MutationDatabases() []string
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDeniedSchemas = []string{"pg_catalog", "information_schema"}
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
func (Policy) AuthorizeAdmin ¶
func (Policy) AuthorizeDML ¶
func (Policy) AuthorizeExec ¶
func (Policy) DeniedSchemas ¶
func (Policy) MutationDatabases ¶
Click to show internal directories.
Click to hide internal directories.