Skip to content

Commit b7a89cc

Browse files
author
Anfernee Gui
committed
Init commit
1 parent ed9577c commit b7a89cc

416 files changed

Lines changed: 183518 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/docker-machine-driver-vmware
2+
/docker-machine-driver-vmware.exe
3+
/out

Gopkg.lock

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/docker/machine"
30+
version = "0.13.0"
31+
32+
[[constraint]]
33+
branch = "master"
34+
name = "golang.org/x/crypto"
35+
36+
[[constraint]]
37+
branch = "master"
38+
name = "golang.org/x/sys"
39+
40+
[prune]
41+
go-tests = true
42+
unused-packages = true

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
OUT_DIR := out
2+
PROG := docker-machine-driver-vmware
3+
4+
GOOS ?= $(shell go env GOOS)
5+
GOARCH ?= $(shell go env GOARCH)
6+
7+
ifeq ($(GOOS),windows)
8+
BIN_SUFFIX := ".exe"
9+
endif
10+
11+
.PHONY: build
12+
build:
13+
go build -o $(OUT_DIR)/$(PROG)$(BIN_SUFFIX) ./
14+
15+
.PHONY: dep
16+
dep:
17+
dep ensure
18+
19+
.PHONY: test
20+
test:
21+
go test -race ./...
22+
23+
.PHONY: check
24+
check:
25+
gofmt -l -s -d pkg/ cmd/
26+
go tool vet pkg/ cmd/

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Docker machine vmware driver
2+
3+
This is a docker machine driver for VMware Fusion and Workstation.
4+
5+
## Build
6+
7+
```shell
8+
make build
9+
```
10+
11+
## License
12+
13+
It's under the Apache 2 license.

main.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
Copyright 2016 The Kubernetes Authors All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package main
18+
19+
import (
20+
"github.com/docker/machine/libmachine/drivers/plugin"
21+
"github.com/machine-drivers/docker-machine-driver-vmware/pkg/drivers/vmware"
22+
)
23+
24+
func main() {
25+
plugin.RegisterDriver(vmware.NewDriver("", ""))
26+
}

0 commit comments

Comments
 (0)