Documentation
¶
Index ¶
Constants ¶
View Source
const RootPublicStatic = "public-static"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPStorageService ¶
type HTTPStorageService interface { List(c *models.ReqContext) response.Response Read(c *models.ReqContext) response.Response Delete(c *models.ReqContext) response.Response Upload(c *models.ReqContext) response.Response }
HTTPStorageService passes raw HTTP requests to a well typed storage service
func ProvideHTTPService ¶
func ProvideHTTPService(store StorageService) HTTPStorageService
type RootStorageConfig ¶
type RootStorageConfig struct { Type string `json:"type"` Prefix string `json:"prefix"` Name string `json:"name"` // Depending on type, these will be configured Disk *StorageLocalDiskConfig `json:"disk,omitempty"` Git *StorageGitConfig `json:"git,omitempty"` SQL *StorageSQLConfig `json:"sql,omitempty"` S3 *StorageS3Config `json:"s3,omitempty"` GCS *StorageGCSConfig `json:"gcs,omitempty"` }
type RootStorageMeta ¶
type StorageGCSConfig ¶
type StorageGitConfig ¶
type StorageGitConfig struct { Remote string `json:"remote"` Branch string `json:"branch"` Root string `json:"root"` // subfolder within the remote // Pull interval? // Requires pull request? RequirePullRequest bool `json:"requirePullRequest"` // SECURE JSON :grimicing: AccessToken string `json:"accessToken,omitempty"` // Simplest auth method for github }
type StorageLocalDiskConfig ¶
type StorageS3Config ¶
type StorageSQLConfig ¶
type StorageSQLConfig struct { }
type StorageService ¶
type StorageService interface { registry.BackgroundService // List folder contents List(ctx context.Context, user *models.SignedInUser, path string) (*data.Frame, error) // Read raw file contents out of the store Read(ctx context.Context, user *models.SignedInUser, path string) (*filestorage.File, error) }
func ProvideService ¶
func ProvideService(sql *sqlstore.SQLStore, features featuremgmt.FeatureToggles, cfg *setting.Cfg) StorageService
type WriteValueRequest ¶
type WriteValueRequest struct { Path string User *models.SignedInUser Body json.RawMessage `json:"body,omitempty"` Message string `json:"message,omitempty"` Title string `json:"title,omitempty"` // For PRs Action string `json:"action,omitempty"` // pr | save }
type WriteValueResponse ¶
Click to show internal directories.
Click to hide internal directories.