Documentation ¶
Index ¶
- type FileStore
- type FileStoreManager
- func (m *FileStoreManager) GetPluginDashboardFileContents(ctx context.Context, args *GetPluginDashboardFileContentsArgs) (*GetPluginDashboardFileContentsResult, error)
- func (m *FileStoreManager) ListPluginDashboardFiles(ctx context.Context, args *ListPluginDashboardFilesArgs) (*ListPluginDashboardFilesResult, error)
- type GetPluginDashboardFileContentsArgs
- type GetPluginDashboardFileContentsResult
- type ListPluginDashboardFilesArgs
- type ListPluginDashboardFilesResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore interface { // ListPluginDashboardFiles lists plugin dashboard files. ListPluginDashboardFiles(ctx context.Context, args *ListPluginDashboardFilesArgs) (*ListPluginDashboardFilesResult, error) // GetPluginDashboardFileContents gets the referenced plugin dashboard file content. GetPluginDashboardFileContents(ctx context.Context, args *GetPluginDashboardFileContentsArgs) (*GetPluginDashboardFileContentsResult, error) }
FileStore is the interface for plugin dashboard file storage.
type FileStoreManager ¶
type FileStoreManager struct {
// contains filtered or unexported fields
}
func ProvideFileStoreManager ¶
func ProvideFileStoreManager(pluginStore plugins.Store, pluginFileStore plugins.FileStore) *FileStoreManager
func (*FileStoreManager) GetPluginDashboardFileContents ¶
func (m *FileStoreManager) GetPluginDashboardFileContents(ctx context.Context, args *GetPluginDashboardFileContentsArgs) (*GetPluginDashboardFileContentsResult, error)
func (*FileStoreManager) ListPluginDashboardFiles ¶
func (m *FileStoreManager) ListPluginDashboardFiles(ctx context.Context, args *ListPluginDashboardFilesArgs) (*ListPluginDashboardFilesResult, error)
type GetPluginDashboardFileContentsArgs ¶
GetPluginDashboardFileContentsArgs get plugin dashboard file content argument model.
type GetPluginDashboardFileContentsResult ¶
type GetPluginDashboardFileContentsResult struct {
Content []byte
}
GetPluginDashboardFileContentsResult get plugin dashboard file content result model.
type ListPluginDashboardFilesArgs ¶
type ListPluginDashboardFilesArgs struct {
PluginID string
}
ListPluginDashboardFilesArgs list plugin dashboard files argument model.
type ListPluginDashboardFilesResult ¶
type ListPluginDashboardFilesResult struct {
FileReferences []string
}
ListPluginDashboardFilesResult list plugin dashboard files result model.
Click to show internal directories.
Click to hide internal directories.