mirror of https://github.com/docker/docs.git
Merge pull request #991 from exoscale/fix/fakedriver-interface
fakedriver: remove useless methods
This commit is contained in:
commit
292e94eea8
|
|
@ -22,10 +22,6 @@ import (
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
MachineName string
|
MachineName string
|
||||||
SubscriptionID string
|
SubscriptionID string
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@ import (
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
AccessToken string
|
AccessToken string
|
||||||
DropletID int
|
DropletID int
|
||||||
|
|
@ -330,10 +326,6 @@ func (d *Driver) Kill() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) GetDockerConfigDir() string {
|
|
||||||
return dockerConfigDir
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *Driver) getClient() *godo.Client {
|
func (d *Driver) getClient() *godo.Client {
|
||||||
t := &oauth.Transport{
|
t := &oauth.Transport{
|
||||||
Token: &oauth.Token{AccessToken: d.AccessToken},
|
Token: &oauth.Token{AccessToken: d.AccessToken},
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
package fakedriver
|
package fakedriver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os/exec"
|
|
||||||
|
|
||||||
"github.com/docker/machine/drivers"
|
"github.com/docker/machine/drivers"
|
||||||
"github.com/docker/machine/provider"
|
"github.com/docker/machine/provider"
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
|
|
@ -97,19 +95,3 @@ func (d *FakeDriver) Kill() error {
|
||||||
func (d *FakeDriver) Upgrade() error {
|
func (d *FakeDriver) Upgrade() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *FakeDriver) StartDocker() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *FakeDriver) StopDocker() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *FakeDriver) GetDockerConfigDir() string {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *FakeDriver) GetSSHCommand(args ...string) (*exec.Cmd, error) {
|
|
||||||
return &exec.Cmd{}, nil
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,6 @@ import (
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Driver is a struct compatible with the docker.hosts.drivers.Driver interface.
|
// Driver is a struct compatible with the docker.hosts.drivers.Driver interface.
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
MachineName string
|
MachineName string
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,6 @@ import (
|
||||||
"github.com/docker/machine/utils"
|
"github.com/docker/machine/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/var/lib/boot2docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
SSHUser string
|
SSHUser string
|
||||||
SSHPort int
|
SSHPort int
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@ import (
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
AuthUrl string
|
AuthUrl string
|
||||||
Insecure bool
|
Insecure bool
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,6 @@ import (
|
||||||
"github.com/docker/machine/drivers/openstack"
|
"github.com/docker/machine/drivers/openstack"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Driver is a machine driver for Rackspace. It's a specialization of the generic OpenStack one.
|
// Driver is a machine driver for Rackspace. It's a specialization of the generic OpenStack one.
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
*openstack.Driver
|
*openstack.Driver
|
||||||
|
|
@ -108,10 +104,6 @@ func (d *Driver) DriverName() string {
|
||||||
return "rackspace"
|
return "rackspace"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) GetDockerConfigDir() string {
|
|
||||||
return dockerConfigDir
|
|
||||||
}
|
|
||||||
|
|
||||||
func missingEnvOrOption(setting, envVar, opt string) error {
|
func missingEnvOrOption(setting, envVar, opt string) error {
|
||||||
return fmt.Errorf(
|
return fmt.Errorf(
|
||||||
"%s must be specified either using the environment variable %s or the CLI option %s",
|
"%s must be specified either using the environment variable %s or the CLI option %s",
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
dockerConfigDir = "/etc/docker"
|
ApiEndpoint = "https://api.softlayer.com/rest/v3"
|
||||||
ApiEndpoint = "https://api.softlayer.com/rest/v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
dockerConfigDir = "/var/lib/boot2docker"
|
isoFilename = "boot2docker.iso"
|
||||||
isoFilename = "boot2docker.iso"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
B2D_USER = "docker"
|
B2D_USER = "docker"
|
||||||
B2D_PASS = "tcuser"
|
B2D_PASS = "tcuser"
|
||||||
dockerConfigDir = "/var/lib/boot2docker"
|
isoFilename = "boot2docker-1.5.0-GH747.iso"
|
||||||
isoFilename = "boot2docker-1.5.0-GH747.iso"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Driver for VMware Fusion
|
// Driver for VMware Fusion
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,6 @@ import (
|
||||||
"github.com/docker/machine/state"
|
"github.com/docker/machine/state"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerConfigDir = "/etc/docker"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Driver struct {
|
type Driver struct {
|
||||||
UserName string
|
UserName string
|
||||||
UserPassword string
|
UserPassword string
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ const (
|
||||||
isoFilename = "boot2docker-1.5.0-GH747.iso"
|
isoFilename = "boot2docker-1.5.0-GH747.iso"
|
||||||
B2D_ISO_NAME = isoFilename
|
B2D_ISO_NAME = isoFilename
|
||||||
DEFAULT_CPU_NUMBER = 2
|
DEFAULT_CPU_NUMBER = 2
|
||||||
dockerConfigDir = "/var/lib/boot2docker"
|
|
||||||
B2D_USER = "docker"
|
B2D_USER = "docker"
|
||||||
B2D_PASS = "tcuser"
|
B2D_PASS = "tcuser"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue