Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

REST client library to interface with the SauceLabs API

Notifications You must be signed in to change notification settings

ssulei7/saucelabs-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Build Validation codecov

Saucelabs Go REST Client

Purpose

A general client to interface with the SauceLabs API with Go.

APIs Covered

Builds

  • Get all builds /rest/v1/user/builds

Jobs

  • Get all jobs /rest/v1/user/jobs

Example

func main() {
    //provide a sauce key and username in which to retrieve information from
    c := sauce.NewClient(os.Getenv("SAUCE_KEY"), os.Getenv("SAUCE_USER"), "base url, leave empty string for default")
    
    //retrieve builds, for example...
    builds, err := c.GetBuilds()
    
    if err == nil {
        //do something with builds slice...
    }
}

TODO

Many items are still pending, including but not limited to...

  • Operations on sauce types
  • Remaining APIs