appstore

package
v0.31.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStore

type AppStore struct {
	HTTPClient *http.Client
	URL        string
	Username   string
	AccessKey  string
}

AppStore implements a remote file storage for storage.ProjectUploader. See https://wiki.saucelabs.com/display/DOCS/Application+Storage for more details.

func New

func New(url, username, accessKey string, timeout time.Duration) *AppStore

New returns an implementation for AppStore

func (*AppStore) Upload

func (s *AppStore) Upload(name string) (storage.ArtifactMeta, error)

Upload uploads file to remote storage

type Item added in v0.21.0

type Item struct {
	ID string `json:"id"`
}

Item represents the metadata about the uploaded file.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL