Documentation
¶
Index ¶
- Constants
- func Apply(ctx context.Context, ce *clienv.CliEnv, appID string, cfg *model.ConfigConfig, ...) error
- func ApplyJSONPatches[T any](cfg T, overlayPath string) (*T, error)
- func Command() *cli.Command
- func CommandApply() *cli.Command
- func CommandDefault() *cli.Command
- func CommandEdit() *cli.Command
- func CommandExample() *cli.Command
- func CommandPull() *cli.Command
- func CommandShow() *cli.Command
- func CommandValidate() *cli.Command
- func CopyConfig[T any](src, dst, overlayPath string) error
- func EditFile(ctx context.Context, editor, filepath string) error
- func GenerateJSONPatch(origfilepath, newfilepath, dst string) error
- func InitConfigAndSecrets(ce *clienv.CliEnv) error
- func Pull(ctx context.Context, ce *clienv.CliEnv, proj *graphql.AppSummaryFragment, ...) (*model.ConfigConfig, error)
- func Validate(ce *clienv.CliEnv, subdomain string, secrets model.Secrets) (*model.ConfigConfig, error)
- func ValidateRemote(ctx context.Context, ce *clienv.CliEnv, subdomain string, appID string) (*model.ConfigConfig, *model.ConfigConfig, error)
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 ApplyJSONPatches ¶ added in v1.13.0
func CommandApply ¶ added in v1.30.0
func CommandDefault ¶
func CommandEdit ¶ added in v1.1.0
func CommandExample ¶ added in v1.1.0
func CommandPull ¶
func CommandShow ¶
func CommandValidate ¶
func CopyConfig ¶ added in v1.13.0
func GenerateJSONPatch ¶ added in v1.13.0
func InitConfigAndSecrets ¶
func Pull ¶
func Pull( ctx context.Context, ce *clienv.CliEnv, proj *graphql.AppSummaryFragment, writeSecrts bool, ) (*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.
Click to show internal directories.
Click to hide internal directories.