appstore

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 17 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) Find added in v0.46.0

func (s *AppStore) Find(filename string) (storage.ArtifactMeta, error)

Find looks for a file having the same signature.

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"`
	ETag string `json:"etag"`
}

Item represents the metadata about the uploaded file.

type Links struct {
	Self string `json:"self"`
	Prev string `json:"prev"`
	Next string `json:"next"`
}

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.

Jump to

Keyboard shortcuts

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