Documentation ¶
Index ¶
- Constants
- func CredsFromEnv() (ok bool, creds *credentials.Credentials)
- func CredsFromFile(filename string) (ok bool, creds *credentials.Credentials)
- type DeviceFarm
- func (df *DeviceFarm) CreateDevicePool(projectArn string, name string, deviceArns []string) (*devicefarm.DevicePool, error)
- func (df *DeviceFarm) CreateRun(projectArn, poolArn, apk, apkInstrumentation string) (string, error)
- func (df *DeviceFarm) CreateUpload(projectArn, filename, uploadType, name string) (uploadArn string, err error)
- func (df *DeviceFarm) DevicePoolMatches(pool *devicefarm.DevicePool, deviceArns []string) bool
- func (df *DeviceFarm) ListDevicePools(projectArn string) ([]*devicefarm.DevicePool, error)
- func (df *DeviceFarm) SearchDevices(search string, androidOnly bool, iosOnly bool) (devices DeviceList, err error)
- func (df *DeviceFarm) UpdateDevicePool(pool *devicefarm.DevicePool, deviceArns []string) (*devicefarm.DevicePool, error)
- func (df *DeviceFarm) UploadSucceeded(arn string) (bool, error)
- func (df *DeviceFarm) UploadToS3(s3Url string, bytes io.ReadSeeker) (err error)
- func (df *DeviceFarm) WaitForUploadsToSucceed(timeoutMs, delayMs int, arns ...string) error
- type DeviceList
Constants ¶
View Source
const ENV_ACCESS_KEY = "AWS_ACCESS_KEY_ID"
View Source
const ENV_SECRET = "AWS_SECRET_ACCESS_KEY"
Variables ¶
This section is empty.
Functions ¶
func CredsFromEnv ¶
func CredsFromEnv() (ok bool, creds *credentials.Credentials)
func CredsFromFile ¶
func CredsFromFile(filename string) (ok bool, creds *credentials.Credentials)
Types ¶
type DeviceFarm ¶
type DeviceFarm struct { Client devicefarmiface.DeviceFarmAPI Log util.Logger // contains filtered or unexported fields }
func NewClient ¶
func NewClient(creds *credentials.Credentials, log util.Logger) *DeviceFarm
func (*DeviceFarm) CreateDevicePool ¶
func (df *DeviceFarm) CreateDevicePool(projectArn string, name string, deviceArns []string) (*devicefarm.DevicePool, error)
func (*DeviceFarm) CreateRun ¶
func (df *DeviceFarm) CreateRun(projectArn, poolArn, apk, apkInstrumentation string) (string, error)
func (*DeviceFarm) CreateUpload ¶
func (df *DeviceFarm) CreateUpload(projectArn, filename, uploadType, name string) (uploadArn string, err error)
func (*DeviceFarm) DevicePoolMatches ¶
func (df *DeviceFarm) DevicePoolMatches(pool *devicefarm.DevicePool, deviceArns []string) bool
func (*DeviceFarm) ListDevicePools ¶
func (df *DeviceFarm) ListDevicePools(projectArn string) ([]*devicefarm.DevicePool, error)
func (*DeviceFarm) SearchDevices ¶
func (df *DeviceFarm) SearchDevices(search string, androidOnly bool, iosOnly bool) (devices DeviceList, err error)
func (*DeviceFarm) UpdateDevicePool ¶
func (df *DeviceFarm) UpdateDevicePool(pool *devicefarm.DevicePool, deviceArns []string) (*devicefarm.DevicePool, error)
func (*DeviceFarm) UploadSucceeded ¶
func (df *DeviceFarm) UploadSucceeded(arn string) (bool, error)
func (*DeviceFarm) UploadToS3 ¶
func (df *DeviceFarm) UploadToS3(s3Url string, bytes io.ReadSeeker) (err error)
func (*DeviceFarm) WaitForUploadsToSucceed ¶
func (df *DeviceFarm) WaitForUploadsToSucceed(timeoutMs, delayMs int, arns ...string) error
type DeviceList ¶
type DeviceList []*devicefarm.Device
DeviceList is a list of devices. The alias exists just so we can add sorting methods.
func (DeviceList) Len ¶
func (list DeviceList) Len() int
func (DeviceList) Less ¶
func (list DeviceList) Less(i, j int) bool
func (DeviceList) Sort ¶
func (list DeviceList) Sort()
func (DeviceList) Swap ¶
func (list DeviceList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.