github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/registry/readme.md (about)

     1  # Docker Registry Go lib
     2  This is a simple Go package to use with the Docker Registry v1.
     3  
     4  # Example
     5  
     6  ```
     7  import registry "github.com/shipyard/shipyard/registry/v1"
     8  
     9  // make sure to handle the err
    10  client, _ := registry.NewRegistryClient("http://localhost:5000", nil)
    11  
    12  res, _ := client.Search("busybox", 1, 100)
    13  
    14  fmt.Printf("Number of Repositories: %d\n", res.NumberOfResults)
    15  for _, r := range res.Results {
    16  	fmt.Printf(" -  Name: %s\n", r.Name)
    17  }
    18  ```