Documentation ¶
Index ¶
- Variables
- type Config
- type Conn
- type Creators
- type Instance
- func (instance *Instance) InspectCreators(ctx context.Context, dbname string, managedRoles mapset.Set[string]) error
- func (instance *Instance) InspectGrants(ctx context.Context, dbname string, privileges privilege.TypeMap, ...) (out []privilege.Grant, err error)
- func (instance *Instance) InspectManagedDatabases(ctx context.Context, pgconn *pgx.Conn, q Querier[string]) error
- func (instance *Instance) InspectRoles(ctx context.Context, pgconn *pgx.Conn, managedRolesQ Querier[string]) error
- func (instance *Instance) InspectSchemas(ctx context.Context, dbname string, managedQuery Querier[postgres.Schema]) error
- func (instance *Instance) InspectSession(ctx context.Context, fallbackOwner string) error
- func (instance *Instance) InspectStage1(ctx context.Context, pc Config) (err error)
- func (instance *Instance) InspectStage2(ctx context.Context, dbname string, query Querier[postgres.Schema]) error
- func (instance *Instance) InspectStage3(ctx context.Context, dbname string, roles mapset.Set[string]) error
- type Querier
- type SQLQuery
- type YAMLQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var Watch perf.StopWatch
Functions ¶
This section is empty.
Types ¶
type Creators ¶
func RowToCreators ¶
type Instance ¶
type Instance struct { AllRoles role.Map Databases postgres.DBMap DefaultDatabase string FallbackOwner string ManagedDatabases mapset.Set[string] ManagedRoles role.Map Me role.Role RolesBlacklist lists.Blacklist }
Fourzitou struct holding everything need to synchronize Instance.
func (*Instance) InspectCreators ¶
func (*Instance) InspectGrants ¶
func (*Instance) InspectManagedDatabases ¶
func (*Instance) InspectRoles ¶
func (*Instance) InspectSchemas ¶
func (*Instance) InspectSession ¶
func (*Instance) InspectStage1 ¶
func (*Instance) InspectStage2 ¶
type SQLQuery ¶
type SQLQuery[T any] struct { SQL string RowTo pgx.RowToFunc[T] // contains filtered or unexported fields }
SQLQuery holds a configurable SQL query en handle fetching rows from Postgres. *SQLQuery implements Querier.
Click to show internal directories.
Click to hide internal directories.