config

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHasuraGraphqlAdminSecret = "nhost-admin-secret" //nolint:gosec
	DefaultGraphqlJWTSecret         = "0f987876650b4a085e64594fae9219e7781b17506bec02489ad061fba8cb22db"
	DefaultNhostWebhookSecret       = "nhost-webhook-secret" //nolint:gosec
)

Variables

This section is empty.

Functions

func Apply added in v1.30.0

func Apply(
	ctx context.Context,
	ce *clienv.CliEnv,
	appID string,
	cfg *model.ConfigConfig,
	skipConfirmation bool,
) error

func ApplyJSONPatches added in v1.13.0

func ApplyJSONPatches[T any](
	cfg T,
	overlayPath string,
) (*T, error)

func Command

func Command() *cli.Command

func CommandApply added in v1.30.0

func CommandApply() *cli.Command

func CommandDefault

func CommandDefault() *cli.Command

func CommandEdit added in v1.1.0

func CommandEdit() *cli.Command

func CommandExample added in v1.1.0

func CommandExample() *cli.Command

func CommandPull

func CommandPull() *cli.Command

func CommandShow

func CommandShow() *cli.Command

func CommandValidate

func CommandValidate() *cli.Command

func CopyConfig added in v1.13.0

func CopyConfig[T any](src, dst, overlayPath string) error

func EditFile added in v1.13.0

func EditFile(ctx context.Context, editor, filepath string) error

func GenerateJSONPatch added in v1.13.0

func GenerateJSONPatch(origfilepath, newfilepath, dst string) error

func InitConfigAndSecrets

func InitConfigAndSecrets(ce *clienv.CliEnv) error

func Pull

func Pull(
	ctx context.Context,
	ce *clienv.CliEnv,
	proj *graphql.AppSummaryFragment,
	writeSecrts bool,
) (*model.ConfigConfig, error)

func Validate

func Validate(
	ce *clienv.CliEnv,
	subdomain string,
	secrets model.Secrets,
) (*model.ConfigConfig, error)

func ValidateRemote

func ValidateRemote(
	ctx context.Context,
	ce *clienv.CliEnv,
	subdomain string,
	appID string,
) (*model.ConfigConfig, *model.ConfigConfig, error)

ValidateRemote validates the configuration of a remote project by fetching the secrets and applying them to the configuration. It also applies any JSON patches from the overlay directory if it exists. It returns the original configuration with the applied patches (without being filled and without secrets resolved) and another configuration filled and with secrets resolved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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