cmd

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 91 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientConfigNotFound = errors.New(heredoc.Doc(`
		Frontier client config not found.

		Run "frontier config init" to initialize a new client config or
		Run "frontier help environment" for more information.
	`))
	ErrClientConfigHostNotFound = errors.New(heredoc.Doc(`
		Frontier client config "host" not found.

		Pass frontier server host with "--host" flag or 
		set host in frontier config.

		Run "frontier config <subcommand>" or
		"frontier help environment" for more information.
	`))
	ErrClientNotAuthorized = errors.New(heredoc.Doc(`
		Frontier auth error. Frontier requires an auth header.
		
		Run "frontier help auth" for more information.
	`))
)
View Source
var GetStripeClientFunc func(logger log.Logger, cfg *config.Frontier) *client.API

Functions

func GroupCommand

func GroupCommand(cliConfig *Config) *cli.Command

func NamespaceCommand

func NamespaceCommand(cliConfig *Config) *cli.Command

func New

func New(cliConfig *Config) *cli.Command

func OrganizationCommand

func OrganizationCommand(cliConfig *Config) *cli.Command

func PermissionCommand

func PermissionCommand(cliConfig *Config) *cli.Command

func PolicyCommand

func PolicyCommand(cliConfig *Config) *cli.Command

func PreferencesCommand added in v0.7.12

func PreferencesCommand(cliConfig *Config) *cobra.Command

func ProjectCommand

func ProjectCommand(cliConfig *Config) *cli.Command

func RoleCommand

func RoleCommand(cliConfig *Config) *cli.Command

func RunMigrations

func RunMigrations(logger log.Logger, config db.Config) error

func RunRollback

func RunRollback(logger log.Logger, config db.Config) error

func SeedCommand

func SeedCommand(cliConfig *Config) *cli.Command

func ServerCommand

func ServerCommand() *cobra.Command

func StartServer

func StartServer(logger *log.Zap, cfg *config.Frontier) error

func UserCommand

func UserCommand(cliConfig *Config) *cli.Command

Types

type Config

type Config struct {
	Host string `mapstructure:"host"`
}

func LoadConfig

func LoadConfig() (*Config, error)

type StripeTransport added in v0.22.0

type StripeTransport struct {
	Base http.RoundTripper
}

StripeTransport wraps the default http.RoundTripper to add metrics.

func (*StripeTransport) RoundTrip added in v0.22.0

func (t *StripeTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface.

Jump to

Keyboard shortcuts

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