Documentation ¶
Index ¶
- func Context(fileContext file.Context) (cont *base.Context, err error)
- func DisplayCoverageInfo(schemaCoverageInfo cov.SchemaCoverageInfo)
- func HandlerFactory(name, endpoint string, insecure bool, urlpath string, ...) (slog.Handler, error)
- func HideSecret(secret string) string
- func HideSecrets(secrets ...string) (rv []string)
- func NewConfigCommand() *cobra.Command
- func NewCoverageCommand() *cobra.Command
- func NewGCPHandler(headers map[string]string, level slog.Leveler) (slog.Handler, error)
- func NewGenerateASTCommand() *cobra.Command
- func NewMigrateCommand() *cobra.Command
- func NewMigrateDownCommand() *cobra.Command
- func NewMigrateResetCommand() *cobra.Command
- func NewMigrateStatusCommand() *cobra.Command
- func NewMigrateUpCommand() *cobra.Command
- func NewOTLPHandler(endpoint string, insecure bool, urlPath string, headers map[string]string, ...) (slog.Handler, error)
- func NewRootCommand() *cobra.Command
- func NewServeCommand() *cobra.Command
- func NewValidateCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- type ErrList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶ added in v0.5.0
Context is a function that takes a file context and returns a base context and an error.
func DisplayCoverageInfo ¶ added in v0.4.0
func DisplayCoverageInfo(schemaCoverageInfo cov.SchemaCoverageInfo)
DisplayCoverageInfo - Display the schema coverage information
func HandlerFactory ¶ added in v1.1.8
func HandlerFactory(name, endpoint string, insecure bool, urlpath string, headers map[string]string, protocol string, level slog.Leveler) (slog.Handler, error)
HandlerFactory - Create log handler according to given params
func HideSecret ¶ added in v0.7.7
HideSecret replaces all but the first and last characters of a string with asterisks
func HideSecrets ¶ added in v0.7.7
HideSecrets obscures each string in a given list.
func NewConfigCommand ¶ added in v0.7.7
func NewCoverageCommand ¶ added in v0.4.0
NewCoverageCommand - creates a new coverage command
func NewGCPHandler ¶ added in v1.1.8
func NewGenerateASTCommand ¶ added in v0.5.4
NewGenerateASTCommand creates a new cobra.Command to generate the Abstract Syntax Tree (AST) from a given file. The command expects exactly one argument, which is the URL or path to the file. It also allows for flags registration for further validation (like coverage flags).
func NewMigrateCommand ¶ added in v0.3.1
NewMigrateCommand - Creates new migrate command
func NewMigrateDownCommand ¶ added in v0.3.1
NewMigrateDownCommand - Creates new migrate down command
func NewMigrateResetCommand ¶ added in v0.5.4
NewMigrateResetCommand - Creates new migrate reset command
func NewMigrateStatusCommand ¶ added in v0.3.1
NewMigrateStatusCommand - Creates new migrate status command
func NewMigrateUpCommand ¶ added in v0.3.1
NewMigrateUpCommand - Creates new migrate up command
func NewOTLPHandler ¶ added in v1.1.8
func NewRootCommand ¶
NewRootCommand - Creates new root command
func NewServeCommand ¶
NewServeCommand returns a new Cobra command that can be used to run the "permify serve" command. The command takes no arguments and runs the serve() function to start the Permify service. The command has a short description of what it does.
func NewValidateCommand ¶
NewValidateCommand - creates a new validate command
func NewVersionCommand ¶ added in v0.3.5
NewVersionCommand - Creates new Version command