Documentation
¶
Overview ¶
Package postgres persists platform configuration and installation facts.
Index ¶
- Variables
- func Migrate(ctx context.Context, db *sql.DB) error
- type Repository
- func (r *Repository) Apply(ctx context.Context, in e.Update) (e.Rule, error)
- func (r *Repository) CheckRuntime(ctx context.Context) error
- func (r *Repository) Cleanup(ctx context.Context, now time.Time) (int64, error)
- func (r *Repository) Effective(ctx context.Context, action, school string) (e.Rule, error)
- func (r *Repository) Initialize(ctx context.Context, names []string) error
- func (r *Repository) ObserveInstalled(ctx context.Context, names []string) error
- func (r *Repository) Ready(ctx context.Context) error
- func (r *Repository) State(ctx context.Context, name string) (h.State, error)
- func (r *Repository) View(ctx context.Context, fn func(a.Store) error) error
- func (r *Repository) Write(ctx context.Context, fn func(a.Store) error) error
Constants ¶
This section is empty.
Variables ¶
var Schema string
Functions ¶
Types ¶
type Repository ¶
func (*Repository) CheckRuntime ¶
func (r *Repository) CheckRuntime(ctx context.Context) error
func (*Repository) Cleanup ¶
Cleanup removes at most 400 expired records per call. Current configuration and installation facts have no count cap and are never removed by retention.
func (*Repository) Initialize ¶
func (r *Repository) Initialize(ctx context.Context, names []string) error
Initialize records explicitly verified absence. Existing facts cannot be replaced; in particular an installed module can never become never-installed.
func (*Repository) ObserveInstalled ¶
func (r *Repository) ObserveInstalled(ctx context.Context, names []string) error