Skip to content

Commit

Permalink
Bump to 1.7 and start using new context pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
caglar10ur committed Aug 22, 2016
1 parent 3ba7600 commit 4fa7b32
Show file tree
Hide file tree
Showing 251 changed files with 287 additions and 1,081 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ clone:
tags: true
path: github.com/vmware/govmomi
build:
image: golang:1.6
image: golang:1.7
pull: true
environment:
- GOVC_TEST_URL=$$GOVC_TEST_URL
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
language: go

go:
- 1.6
- 1.7

before_install:
- make vendor
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ are kept outside the object package.
package govmomi

import (
"context"
"crypto/tls"
"net/url"

Expand All @@ -65,7 +66,6 @@ import (
"github.com/vmware/govmomi/vim25"
"github.com/vmware/govmomi/vim25/soap"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package govmomi

import (
"context"
"errors"
"net/http"
"net/url"
Expand All @@ -25,7 +26,6 @@ import (
"github.com/vmware/govmomi/test"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

func TestNewClient(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions event/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ limitations under the License.
package event

import (
"context"
"fmt"

"golang.org/x/net/context"

"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/view"
"github.com/vmware/govmomi/vim25/types"
Expand Down
3 changes: 2 additions & 1 deletion event/history_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ limitations under the License.
package event

import (
"context"

"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/vim25"
"github.com/vmware/govmomi/vim25/methods"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type HistoryCollector struct {
Expand Down
2 changes: 1 addition & 1 deletion event/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package event

import (
"context"
"fmt"
"reflect"
"sync"
Expand All @@ -27,7 +28,6 @@ import (
"github.com/vmware/govmomi/vim25/methods"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type Manager struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/datastores/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ be used to navigate a vSphere inventory structure using govmomi.
package main

import (
"context"
"flag"
"fmt"
"net/url"
Expand All @@ -35,7 +36,6 @@ import (
"github.com/vmware/govmomi/units"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

// GetEnvString returns string from environment variable.
Expand Down
2 changes: 1 addition & 1 deletion find/finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package find

import (
"context"
"errors"
"path"

Expand All @@ -26,7 +27,6 @@ import (
"github.com/vmware/govmomi/vim25"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type Finder struct {
Expand Down
3 changes: 1 addition & 2 deletions govc/about/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ limitations under the License.
package about

import (
"context"
"flag"
"fmt"
"io"
"text/tabwriter"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/vim25/types"
Expand Down
3 changes: 1 addition & 2 deletions govc/cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ limitations under the License.
package cli

import (
"context"
"flag"
"fmt"
"io/ioutil"
"os"
"sort"
"text/tabwriter"

"golang.org/x/net/context"
)

type HasFlags interface {
Expand Down
2 changes: 1 addition & 1 deletion govc/cluster/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
package cluster

import (
"context"
"flag"
"fmt"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
"golang.org/x/net/context"
)

type add struct {
Expand Down
3 changes: 1 addition & 2 deletions govc/cluster/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ limitations under the License.
package cluster

import (
"context"
"flag"
"strings"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/vim25/types"
Expand Down
3 changes: 1 addition & 2 deletions govc/cluster/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ limitations under the License.
package cluster

import (
"context"
"flag"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
Expand Down
2 changes: 1 addition & 1 deletion govc/datacenter/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ limitations under the License.
package datacenter

import (
"context"
"flag"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"golang.org/x/net/context"
)

type create struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datacenter/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ limitations under the License.
package datacenter

import (
"context"
"flag"

"github.com/vmware/govmomi/find"
"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"golang.org/x/net/context"
)

type destroy struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datacenter/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package datacenter

import (
"context"
"flag"
"fmt"
"io"
Expand All @@ -30,7 +31,6 @@ import (
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type info struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
"golang.org/x/net/context"
)

type cp struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"
"fmt"
Expand All @@ -29,7 +30,6 @@ import (
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/vim25/soap"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type create struct {
Expand Down
3 changes: 1 addition & 2 deletions govc/datastore/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"
"io"
"os"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/vim25/soap"
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package datastore

import (
"context"
"flag"
"fmt"
"io"
Expand All @@ -29,7 +30,6 @@ import (
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type info struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package datastore

import (
"context"
"encoding/json"
"flag"
"fmt"
Expand All @@ -29,7 +30,6 @@ import (
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/units"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type ls struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/mkdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"
"fmt"
Expand All @@ -26,7 +27,6 @@ import (
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/vim25/soap"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type mkdir struct {
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/mv.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
"golang.org/x/net/context"
)

type mv struct {
Expand Down
3 changes: 1 addition & 2 deletions govc/datastore/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ limitations under the License.
package datastore

import (
"context"
"flag"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
)
Expand Down
2 changes: 1 addition & 1 deletion govc/datastore/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/object"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)

type rm struct {
Expand Down
3 changes: 1 addition & 2 deletions govc/datastore/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ limitations under the License.
package datastore

import (
"context"
"errors"
"flag"
"os"

"golang.org/x/net/context"

"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/vim25/soap"
Expand Down
Loading

0 comments on commit 4fa7b32

Please sign in to comment.