Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigCommand() *cobra.Command
- func GenEncryptionKeyCommand() *cobra.Command
- func New(cliConfig *Config) *cobra.Command
- func RunMigrations(logger *slog.Logger, config database.Config) error
- func RunRollback(logger *slog.Logger, config database.Config) error
- func Serve(cfg *config.Config) *api.API
- func ServerCommand() *cobra.Command
- func SetHelp(cmd *cobra.Command)
- type Config
Constants ¶
View Source
const ( USAGE = "Usage" CORECMD = "Core commands" HELPCMD = "Help topics" OTHERCMD = "Other commands" FLAGS = "Flags" IFLAGS = "Inherited flags" ARGUMENTS = "Arguments" EXAMPLES = "Examples" ENVS = "Environment variables" LEARN = "Learn more" FEEDBACK = "Feedback" )
View Source
const Description = `` /* 1583-byte string literal not displayed */
Variables ¶
View Source
var ( ErrClientConfigNotFound = errors.New(heredoc.Doc(` gateway client config not found. Run "gateway config init" to initialize a new client config or Run "gateway help environment" for more information. `)) ErrClientConfigHostNotFound = errors.New(heredoc.Doc(` gateway client config "host" not found. Pass gateway server host with "--host" flag or set host in gateway config. Run "gateway config <subcommand>" or "gateway help environment" for more information. `)) ErrClientNotAuthorized = errors.New(heredoc.Doc(` gateway auth error. gateway requires an auth header. Run "gateway help auth" for more information. `)) )
Functions ¶
func ConfigCommand ¶
func GenEncryptionKeyCommand ¶
func ServerCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.