Documentation
¶
Overview ¶
Package nhost registers the nhost importer. Purpose: move an nhost project (Postgres, Hasura metadata, hasura-auth users with bcrypt, hasura-storage objects) into a started nSelf project through the shared bundle pipeline. Inputs: env-name flags for the DB URL, admin secret and S3 keys; plain flags for URLs. Outputs: a sealed portable bundle with producer source nhost. Constraints: no secret on argv, in logs, reports or errors; the postgres source owns the snapshot, this one adds to it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct{}
Source is the nhost importer.
func (Source) Detect ¶
Detect runs the postgres checks, then proves the Hasura admin secret works, reads the Hasura version, and refuses a source that holds uploaded files without the S3 flags.
func (Source) Extract ¶
func (Source) Extract(ctx context.Context, in importer.Input, stage string) (importer.Extracted, error)
Extract writes the bundle at stage.