Update vendored dependencies
This includes github.com/kurin/blazer 0.2.0, which resolves #1291
This commit is contained in:
parent
ba23d24dd1
commit
61cb1cc6f8
1044 changed files with 203022 additions and 97709 deletions
65
vendor/github.com/Azure/azure-sdk-for-go/arm/devtestlabs/galleryimages.go
generated
vendored
65
vendor/github.com/Azure/azure-sdk-for-go/arm/devtestlabs/galleryimages.go
generated
vendored
|
@ -14,9 +14,8 @@ package devtestlabs
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
|
@ -29,25 +28,22 @@ type GalleryImagesClient struct {
|
|||
ManagementClient
|
||||
}
|
||||
|
||||
// NewGalleryImagesClient creates an instance of the GalleryImagesClient
|
||||
// client.
|
||||
// NewGalleryImagesClient creates an instance of the GalleryImagesClient client.
|
||||
func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient {
|
||||
return NewGalleryImagesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewGalleryImagesClientWithBaseURI creates an instance of the
|
||||
// GalleryImagesClient client.
|
||||
// NewGalleryImagesClientWithBaseURI creates an instance of the GalleryImagesClient client.
|
||||
func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient {
|
||||
return GalleryImagesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// List list gallery images in a given lab.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. expand is specify the $expand query. Example:
|
||||
// 'properties($select=author)' filter is the filter to apply to the operation.
|
||||
// top is the maximum number of resources to return from the operation. orderby
|
||||
// is the ordering expression for the results, using OData notation.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand
|
||||
// query. Example: 'properties($select=author)' filter is the filter to apply to the operation. top is the maximum
|
||||
// number of resources to return from the operation. orderby is the ordering expression for the results, using OData
|
||||
// notation.
|
||||
func (client GalleryImagesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationGalleryImage, err error) {
|
||||
req, err := client.ListPreparer(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
|
@ -145,3 +141,48 @@ func (client GalleryImagesClient) ListNextResults(lastResults ResponseWithContin
|
|||
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client GalleryImagesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan GalleryImage, <-chan error) {
|
||||
resultChan := make(chan GalleryImage)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue