Documentation
¶
Overview ¶
Package storage provides data storage for the extension and user specific data.
Index ¶
Constants ¶
const K6BrowserDataDirPattern = "k6browser-data-*"
K6BrowserDataDirPattern is the pattern used to create the temporary directory for the browser data.
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 ¶
type LocalFilePersister struct{}
LocalFilePersister will persist files to the local disk.
type PresignedURLResponse ¶
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 ¶
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 ¶
func NewRemoteFilePersister( presignedURLRequestURL string, headers map[string]string, basePath string, ) *RemoteFilePersister
NewRemoteFilePersister creates a new instance of RemoteFilePersister.