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 PresignedURLResponse ¶ added in v1.8.0
type PresignedURLResponse struct { Service string `json:"service"` URLs []struct { Name string `json:"name"` PresignedURL string `json:"pre_signed_url"` //nolint:tagliatelle Method string `json:"method"` FormFields map[string]string `json:"form_fields"` //nolint:tagliatelle } `json:"urls"` }
PresignedURLResponse holds the response from a presigned generation request.
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 presignedURLRequestURL to retrieve one presigned URL. The presigned url is used to upload the file to the remote location.
func NewRemoteFilePersister ¶ added in v1.4.0
func NewRemoteFilePersister( presignedURLRequestURL 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.