Documentation
¶
Index ¶
- Variables
- func Run(cliCtx *cli.Command, newCliApp func() *cli.Command, configPath string, ...) error
- type APIServer
- func (api *APIServer) CreateIntegrationTables() error
- func (api *APIServer) GetConfig() *config.Config
- func (api *APIServer) GetMetrics() *metrics.APIMetrics
- func (api *APIServer) ReloadConfig(w http.ResponseWriter, command string) (*config.Config, error)
- func (api *APIServer) Restart() error
- func (api *APIServer) ResumeOperationsAfterRestart() error
- func (api *APIServer) RunWatch(cliCtx *cli.Command)
- func (api *APIServer) Stop() error
- func (api *APIServer) UpdateBackupMetrics(ctx context.Context, onlyLocal bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAPILocked = errors.New("another operation is currently running")
)
Functions ¶
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func (*APIServer) CreateIntegrationTables ¶
func (*APIServer) GetConfig ¶ added in v2.6.40
GetConfig returns the current config with read lock protection
func (*APIServer) GetMetrics ¶
func (api *APIServer) GetMetrics() *metrics.APIMetrics
func (*APIServer) ReloadConfig ¶
func (*APIServer) ResumeOperationsAfterRestart ¶
Click to show internal directories.
Click to hide internal directories.