Documentation
¶
Overview ¶
Package load applies verified bundles to fresh, started targets. Purpose: target preconditions. Inputs: loaded config. Outputs: refusal before writes. Constraints: Docker reads use the funnel; SQL identifiers are sanitized.
Index ¶
- func Apply(ctx context.Context, cfg *config.Config, r *portable.Reader, opts Options) ([]portable.Exemption, error)
- func ApplyStorage(ctx context.Context, r *portable.Reader, store *objstore.Client, skip bool) ([]portable.Exemption, error)
- func ApplyUsers(ctx context.Context, db *pgx.Conn, users []verify.User) error
- func AuthPreflight(ctx context.Context, db queryRower, bundleUsers int) error
- func Connect(ctx context.Context, cfg *config.Config) (*pgx.Conn, error)
- func Empty(ctx context.Context, db *pgx.Conn, schemas []string, storage bool) error
- func Image(ctx context.Context, cfg *config.Config) (string, error)
- func Started(ctx context.Context, dir string) error
- func StoragePreflight(m portable.Manifest, store *objstore.Client, skip bool) error
- func Store(cfg *config.Config) (*objstore.Client, error)
- func SystemTable(schema, name string, storage bool) bool
- func TryLock(ctx context.Context, db queryRower) error
- func TypeFunctionCollisions(ctx context.Context, db queryRower, toc string, schemas []string) error
- type Options
- type Progress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyStorage ¶
func AuthPreflight ¶
AuthPreflight refuses a bundle with users when the target already holds auth users: the load would add to them and verification (which counts every target user) could never reach zero.
func StoragePreflight ¶
func SystemTable ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.