Documentation
¶
Overview ¶
Package dbaccess parses and validates the declarative PostgreSQL access contract consumed by the appkit db-access command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnGrant ¶
type FunctionGrant ¶
type Grants ¶
type Grants struct {
Schemas map[string][]string `yaml:"schemas,omitempty"`
Tables map[string][]string `yaml:"tables,omitempty"`
Sequences map[string][]string `yaml:"sequences,omitempty"`
Columns []ColumnGrant `yaml:"columns,omitempty"`
Functions []FunctionGrant `yaml:"functions,omitempty"`
}
type Manifest ¶
type Manifest struct {
Version int `yaml:"version"`
Service string `yaml:"service"`
Roles Roles `yaml:"roles"`
Memberships Memberships `yaml:"memberships,omitempty"`
Grants Grants `yaml:"grants,omitempty"`
RLS map[string]RLSRequirement `yaml:"rls,omitempty"`
Forbidden Forbidden `yaml:"forbidden,omitempty"`
}
type Memberships ¶
type RLSPolicyContract ¶
type RLSRequirement ¶
type RLSRequirement struct {
Enabled bool `yaml:"enabled"`
Forced bool `yaml:"forced"`
ExactPolicies bool `yaml:"exactPolicies"`
Policies []RLSPolicyContract `yaml:"policies"`
}
type Role ¶
type Role struct {
Name string `yaml:"name"`
Managed bool `yaml:"managed"`
Attributes RoleAttributes `yaml:"attributes,omitempty"`
}
type RoleAttributes ¶
Click to show internal directories.
Click to hide internal directories.