Help us shape the future of Go! Take the 2026 Go Developer Survey

nhost

package
v1.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 11 Imported by: 0

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.

func (Source) Flags

func (Source) Flags() []importer.FlagSpec

Flags lists the nhost inputs; the storage flags are required only when the source holds files.

func (Source) Name

func (Source) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL