Documentation ¶
Index ¶
- type AppStore
- func (s *AppStore) Download(id string) (io.ReadCloser, int64, error)
- func (s *AppStore) Find(filename string) (storage.Item, error)deprecated
- func (s *AppStore) List(opts storage.ListOptions) (storage.List, error)
- func (s *AppStore) Upload(filename string, description string) (storage.Item, error)deprecated
- func (s *AppStore) UploadStream(filename, description string, reader io.Reader) (storage.Item, error)
- type Item
- type Links
- type ListResponse
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppStore ¶
AppStore implements a remote file storage for storage.AppService. See https://wiki.saucelabs.com/display/DOCS/Application+Storage for more details.
func (*AppStore) Download ¶ added in v0.107.0
Download downloads a file with the given id. It's the caller's responsibility to close the reader.
func (*AppStore) List ¶ added in v0.107.0
List returns a list of items stored in the Sauce app storage that match the search criteria specified by opts.
type Item ¶ added in v0.21.0
type Item struct { ID string `json:"id"` Name string `json:"name"` Size int `json:"size"` UploadTimestamp int64 `json:"upload_timestamp"` }
Item represents the metadata about the uploaded file.
type Links ¶ added in v0.46.0
Links represents the pagination information returned by the app store.
type ListResponse ¶ added in v0.46.0
type ListResponse struct { Items []Item `json:"items"` Links Links `json:"links"` Page int `json:"page"` PerPage int `json:"per_page"` TotalItems int `json:"total_items"` }
ListResponse represents the response as is returned by the app store.
type UploadResponse ¶ added in v0.21.0
type UploadResponse struct {
Item Item `json:"item"`
}
UploadResponse represents the response as is returned by the app store.
Click to show internal directories.
Click to hide internal directories.