Documentation ¶
Index ¶
- Constants
- func BoldBlue(name string) string
- func DeprecatedRunE(fn cobrautil.CobraRunFunc, newCmd string) cobrautil.CobraRunFunc
- func HeadRevision(engine string) (string, error)
- func NewDatastoreCommand(programName string) (*cobra.Command, error)
- func NewDevtoolsCommand(programName string) *cobra.Command
- func NewGCDatastoreCommand(programName string, cfg *datastore.Config) *cobra.Command
- func NewHeadCommand(programName string) *cobra.Command
- func NewLSPCommand(programName string, config *LSPConfig) *cobra.Command
- func NewMigrateCommand(programName string) *cobra.Command
- func NewRepairDatastoreCommand(programName string, cfg *datastore.Config) *cobra.Command
- func NewRootCommand(programName string) *cobra.Command
- func NewServeCommand(programName string, config *server.Config) *cobra.Command
- func NewTestingCommand(programName string, config *testserver.Config) *cobra.Command
- func NewVersionCommand(programName string) *cobra.Command
- func RegisterDatastoreRootFlags(_ *cobra.Command)
- func RegisterDevtoolsFlags(cmd *cobra.Command)
- func RegisterHeadFlags(cmd *cobra.Command)
- func RegisterLSPFlags(cmd *cobra.Command, config *LSPConfig) error
- func RegisterMigrateFlags(cmd *cobra.Command)
- func RegisterRootFlags(cmd *cobra.Command) error
- func RegisterServeFlags(cmd *cobra.Command, config *server.Config) error
- func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config)
- func RegisterVersionFlags(cmd *cobra.Command)
- func SignalContextWithGracePeriod(ctx context.Context, gracePeriod time.Duration) context.Context
- type LSPConfig
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DeprecatedRunE ¶ added in v1.30.0
func DeprecatedRunE(fn cobrautil.CobraRunFunc, newCmd string) cobrautil.CobraRunFunc
DeprecatedRunE wraps the RunFunc with a warning log statement.
func HeadRevision ¶ added in v1.5.0
HeadRevision returns the latest migration revision for a given engine
func NewDatastoreCommand ¶ added in v1.16.0
func NewDevtoolsCommand ¶ added in v1.5.0
func NewGCDatastoreCommand ¶ added in v1.16.0
func NewHeadCommand ¶ added in v1.5.0
func NewLSPCommand ¶ added in v1.31.0
func NewMigrateCommand ¶ added in v1.5.0
func NewRepairDatastoreCommand ¶ added in v1.28.0
func NewRootCommand ¶ added in v1.5.0
func NewServeCommand ¶ added in v1.5.0
func NewTestingCommand ¶ added in v1.5.0
func NewTestingCommand(programName string, config *testserver.Config) *cobra.Command
func NewVersionCommand ¶ added in v1.5.0
func RegisterDatastoreRootFlags ¶ added in v1.16.0
func RegisterDevtoolsFlags ¶ added in v1.5.0
func RegisterHeadFlags ¶ added in v1.5.0
func RegisterLSPFlags ¶ added in v1.31.0
func RegisterMigrateFlags ¶ added in v1.5.0
func RegisterRootFlags ¶ added in v1.5.0
func RegisterServeFlags ¶ added in v1.5.0
func RegisterTestingFlags ¶ added in v1.5.0
func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config)
func RegisterVersionFlags ¶ added in v1.5.0
func SignalContextWithGracePeriod ¶
SignalContextWithGracePeriod creates a new context that will be cancelled when an interrupt/SIGTERM signal is received and the provided grace period subsequently finishes.
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Click to show internal directories.
Click to hide internal directories.