export

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportConfig

type ExportConfig struct {
	Format            string `json:"format"`
	GeneralFolderPath string `json:"generalFolderPath"`
	KeepHistory       bool   `json:"history"`

	Exclude map[string]bool `json:"exclude"`

	// Depends on the format
	Git GitExportConfig `json:"git"`
}

Basic export config (for now)

type ExportService

type ExportService interface {
	// List folder contents
	HandleGetStatus(c *models.ReqContext) response.Response

	// List Get Options
	HandleGetOptions(c *models.ReqContext) response.Response

	// Read raw file contents out of the store
	HandleRequestExport(c *models.ReqContext) response.Response

	// Cancel any running export
	HandleRequestStop(c *models.ReqContext) response.Response
}

func ProvideService

func ProvideService(sql *sqlstore.SQLStore, features featuremgmt.FeatureToggles, gl *live.GrafanaLive, cfg *setting.Cfg,
	dashboardsnapshotsService dashboardsnapshots.Service, playlistService playlist.Service, orgService org.Service,
	datasourceService datasources.DataSourceService) ExportService

type ExportStatus

type ExportStatus struct {
	Running  bool           `json:"running"`
	Target   string         `json:"target"` // description of where it is going (no secrets)
	Started  int64          `json:"started,omitempty"`
	Finished int64          `json:"finished,omitempty"`
	Changed  int64          `json:"update,omitempty"`
	Last     string         `json:"last,omitempty"`
	Status   string         `json:"status"` // ERROR, SUCCESS, ETC
	Index    int            `json:"index,omitempty"`
	Count    map[string]int `json:"count,omitempty"`
}

Export status. Only one running at a time

type Exporter

type Exporter struct {
	Key         string     `json:"key"`
	Name        string     `json:"name"`
	Description string     `json:"description"`
	Exporters   []Exporter `json:"exporters,omitempty"`
	// contains filtered or unexported fields
}

type GitExportConfig

type GitExportConfig struct{}

type Job

type Job interface {
	// contains filtered or unexported methods
}

type StandardExport

type StandardExport struct {
	// contains filtered or unexported fields
}

func (*StandardExport) HandleGetOptions

func (ex *StandardExport) HandleGetOptions(c *models.ReqContext) response.Response

func (*StandardExport) HandleGetStatus

func (ex *StandardExport) HandleGetStatus(c *models.ReqContext) response.Response

func (*StandardExport) HandleRequestExport

func (ex *StandardExport) HandleRequestExport(c *models.ReqContext) response.Response

func (*StandardExport) HandleRequestStop

func (ex *StandardExport) HandleRequestStop(c *models.ReqContext) response.Response

type StubExport

type StubExport struct{}

func (*StubExport) HandleGetOptions

func (ex *StubExport) HandleGetOptions(c *models.ReqContext) response.Response

func (*StubExport) HandleGetStatus

func (ex *StubExport) HandleGetStatus(c *models.ReqContext) response.Response

func (*StubExport) HandleRequestExport

func (ex *StubExport) HandleRequestExport(c *models.ReqContext) response.Response

func (*StubExport) HandleRequestStop

func (ex *StubExport) HandleRequestStop(c *models.ReqContext) response.Response

Jump to

Keyboard shortcuts

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