Documentation ¶
Overview ¶
Package storage provides data storage for the extension and user specific data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct { Dir string // path to the data storage directory // contains filtered or unexported fields }
Dir manages data storage for the extension and user specific data on the local filesystem.
type LocalFilePersister ¶ added in v1.4.0
type LocalFilePersister struct{}
LocalFilePersister will persist files to the local disk.
type RemoteFilePersister ¶ added in v1.4.0
type RemoteFilePersister struct {
// contains filtered or unexported fields
}
RemoteFilePersister is to be used when files created by the browser module need to be uploaded to a remote location. This uses a preSignedURLGetterURL to retrieve one pre-signed URL. The pre-signed url is used to upload the file to the remote location.
func NewRemoteFilePersister ¶ added in v1.4.0
func NewRemoteFilePersister( preSignedURLGetterURL string, headers map[string]string, basePath string, ) *RemoteFilePersister
NewRemoteFilePersister creates a new instance of RemoteFilePersister.
Click to show internal directories.
Click to hide internal directories.