Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardNotFoundError ¶
type DashboardNotFoundError struct {
DashboardID string
}
DashboardNotFoundError signalizes the requested dashboard could not be found
func (DashboardNotFoundError) Error ¶
func (e DashboardNotFoundError) Error() string
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
FileStorage is a storage adapter storing the data into single local files
func NewFileStorage ¶
func NewFileStorage(uri *url.URL) *FileStorage
NewFileStorage instanciates a new FileStorage
func (*FileStorage) Delete ¶
func (f *FileStorage) Delete(dashboardID string) error
Delete deletes the given dashboard from FS
func (*FileStorage) Exists ¶
func (f *FileStorage) Exists(dashboardID string) (bool, error)
Exists checks for the existence of the given dashboard
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is a storage adapter storing the data into single S3 files
func NewS3Storage ¶
NewS3Storage instanciates a new S3Storage
type Storage ¶
type Storage interface { Put(dashboardID string, data []byte) error Get(dashboardID string) ([]byte, error) Delete(dashboardID string) error Exists(dashboardID string) (bool, error) }
Storage is an interface to have all storage systems compatible to each other
func GetStorage ¶
GetStorage acts as a storage factory providing the storage named by input name parameter
Click to show internal directories.
Click to hide internal directories.