1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

go mod vendor update

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2019-12-14 08:52:34 -08:00
parent 703619bf0a
commit 3d4059de02
665 changed files with 104373 additions and 59789 deletions

View File

@@ -16,19 +16,24 @@ import (
"net/url"
)
type Client struct {
type Client interface {
// Gets an operation from the the operationId using the given pluginId.
GetOperation(context.Context, GetOperationArgs) (*Operation, error)
}
type ClientImpl struct {
Client azuredevops.Client
}
func NewClient(ctx context.Context, connection *azuredevops.Connection) *Client {
func NewClient(ctx context.Context, connection *azuredevops.Connection) Client {
client := connection.GetClientByUrl(connection.BaseUrl)
return &Client{
return &ClientImpl{
Client: *client,
}
}
// Gets an operation from the the operationId using the given pluginId.
func (client *Client) GetOperation(ctx context.Context, args GetOperationArgs) (*Operation, error) {
func (client *ClientImpl) GetOperation(ctx context.Context, args GetOperationArgs) (*Operation, error) {
routeValues := make(map[string]string)
if args.OperationId == nil {
return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.OperationId"}