mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 14:12:41 +08:00
29 lines
512 B
Go
29 lines
512 B
Go
package standalone
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
type BuildInfo struct {
|
|
Version string
|
|
Commit string
|
|
EnterpriseCommit string
|
|
BuildBranch string
|
|
BuildStamp string
|
|
}
|
|
|
|
type APIServerFactory interface {
|
|
GetCLICommand(info BuildInfo) *cli.Command
|
|
}
|
|
|
|
// NOOP
|
|
func ProvideAPIServerFactory() APIServerFactory {
|
|
return &NoOpAPIServerFactory{}
|
|
}
|
|
|
|
type NoOpAPIServerFactory struct{}
|
|
|
|
func (f *NoOpAPIServerFactory) GetCLICommand(info BuildInfo) *cli.Command {
|
|
return nil
|
|
}
|