postgres

package
v3.81.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeAndPrintPermissions added in v3.80.5

func AnalyzeAndPrintPermissions(cfg *config.Config, connectionStr string)

Types

type DB

type DB struct {
	DatabaseName string
	Owner        string
	DBPrivs
}

type DBPrivs

type DBPrivs struct {
	Connect    bool
	Create     bool
	CreateTemp bool
}

type SecretInfo added in v3.80.5

type SecretInfo struct {
	User       string
	Role       string
	RolePrivs  map[string]bool
	DBs        []DB
	TablePrivs map[string]map[string]*TableData
}

func AnalyzePermissions

func AnalyzePermissions(cfg *config.Config, connectionStr string) (*SecretInfo, error)

type TableData

type TableData struct {
	Size  string
	Rows  string
	Privs TablePrivs
}

type TablePrivs

type TablePrivs struct {
	Select     bool
	Insert     bool
	Update     bool
	Delete     bool
	Truncate   bool
	References bool
	Trigger    bool
}

Jump to

Keyboard shortcuts

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