Documentation ¶
Index ¶
- func List(userstorer storage.UserStorer, uid string) (*messages.IntegrationsResponse, error)
- type DropBox
- func (d *DropBox) Download(fileID string) (io.ReadCloser, int64, error)
- func (d *DropBox) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
- func (d *DropBox) List(folderID string, depth int) (*messages.IntegrationFolder, error)
- func (d *DropBox) Upload(folderID, name, fileType string, reader io.ReadCloser) (string, error)
- type FTPIntegration
- func (g *FTPIntegration) Download(fileID string) (io.ReadCloser, int64, error)
- func (g *FTPIntegration) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
- func (g *FTPIntegration) List(folder string, depth int) (*messages.IntegrationFolder, error)
- func (g *FTPIntegration) Upload(folderID, name, fileType string, reader io.ReadCloser) (id string, err error)
- type IntegrationProvider
- type WebDavIntegration
- func (w *WebDavIntegration) Download(fileID string) (io.ReadCloser, int64, error)
- func (w *WebDavIntegration) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
- func (w *WebDavIntegration) List(folder string, depth int) (*messages.IntegrationFolder, error)
- func (w *WebDavIntegration) Upload(folderID, name, fileType string, reader io.ReadCloser) (id string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(userstorer storage.UserStorer, uid string) (*messages.IntegrationsResponse, error)
List lists the integrations
Types ¶
type DropBox ¶
type DropBox struct {
// contains filtered or unexported fields
}
func (*DropBox) GetMetadata ¶ added in v0.0.20
func (d *DropBox) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
type FTPIntegration ¶ added in v0.0.20
type FTPIntegration struct {
// contains filtered or unexported fields
}
func (*FTPIntegration) Download ¶ added in v0.0.20
func (g *FTPIntegration) Download(fileID string) (io.ReadCloser, int64, error)
func (*FTPIntegration) GetMetadata ¶ added in v0.0.20
func (g *FTPIntegration) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
func (*FTPIntegration) List ¶ added in v0.0.20
func (g *FTPIntegration) List(folder string, depth int) (*messages.IntegrationFolder, error)
func (*FTPIntegration) Upload ¶ added in v0.0.20
func (g *FTPIntegration) Upload(folderID, name, fileType string, reader io.ReadCloser) (id string, err error)
type IntegrationProvider ¶
type IntegrationProvider interface { GetMetadata(fileID string) (result *messages.IntegrationMetadata, err error) List(folderID string, depth int) (result *messages.IntegrationFolder, err error) Download(fileID string) (io.ReadCloser, int64, error) Upload(folderID, name, fileType string, reader io.ReadCloser) (string, error) }
IntegrationProvider abstracts 3rd party integrations
func GetIntegrationProvider ¶
func GetIntegrationProvider(storer storage.UserStorer, uid, integrationid string) (IntegrationProvider, error)
GetIntegrationProvider finds the integration provider for the user
type WebDavIntegration ¶
type WebDavIntegration struct {
// contains filtered or unexported fields
}
WebDavIntegration webdav support
func (*WebDavIntegration) Download ¶
func (w *WebDavIntegration) Download(fileID string) (io.ReadCloser, int64, error)
Download downloads
func (*WebDavIntegration) GetMetadata ¶ added in v0.0.20
func (w *WebDavIntegration) GetMetadata(fileID string) (*messages.IntegrationMetadata, error)
func (*WebDavIntegration) List ¶
func (w *WebDavIntegration) List(folder string, depth int) (*messages.IntegrationFolder, error)
List populates the response
func (*WebDavIntegration) Upload ¶
func (w *WebDavIntegration) Upload(folderID, name, fileType string, reader io.ReadCloser) (id string, err error)
Upload uploads a file
Click to show internal directories.
Click to hide internal directories.