Documentation
¶
Index ¶
- type Admin
- func (a *Admin) DiagnosticsExportAPIHandler() http.Handler
- func (a *Admin) DiagnosticsGetAPIHandler() http.Handler
- func (a *Admin) DiagnosticsHandler() http.Handler
- func (a *Admin) DiagnosticsImportAPIHandler() http.Handler
- func (a *Admin) DiagnosticsListAPIHandler() http.Handler
- func (a *Admin) DiagnosticsListHandler() http.Handler
- func (a *Admin) TenantsAPIHandler() http.Handler
- type DiagnosticsStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger log.Logger, tenantService metastorev1.TenantServiceClient, diagnosticsStore DiagnosticsStore, ) *Admin
func (*Admin) DiagnosticsExportAPIHandler ¶
DiagnosticsExportAPIHandler returns a handler for exporting a diagnostic as a zip file.
func (*Admin) DiagnosticsGetAPIHandler ¶
DiagnosticsGetAPIHandler returns a JSON API handler for getting a single diagnostic.
func (*Admin) DiagnosticsHandler ¶
DiagnosticsHandler returns an HTTP handler for the query diagnostics page shell.
func (*Admin) DiagnosticsImportAPIHandler ¶
DiagnosticsImportAPIHandler returns a handler for importing a diagnostic from a zip file.
func (*Admin) DiagnosticsListAPIHandler ¶
DiagnosticsListAPIHandler returns a JSON API handler for listing diagnostics by tenant.
func (*Admin) DiagnosticsListHandler ¶
DiagnosticsListHandler returns an HTTP handler for the stored diagnostics page shell.
func (*Admin) TenantsAPIHandler ¶
TenantsAPIHandler returns a JSON API handler for listing tenants.
type DiagnosticsStore ¶
type DiagnosticsStore interface {
ListByTenant(ctx context.Context, tenant string) ([]*diagnostics.DiagnosticSummary, error)
Get(ctx context.Context, tenant string, id string) (*diagnostics.StoredDiagnostics, error)
Export(ctx context.Context, tenant string, id string) ([]byte, error)
Import(ctx context.Context, tenant string, id string, data []byte) (string, error)
}
Click to show internal directories.
Click to hide internal directories.