Migrate very basic environment capabilities

This commit is contained in:
Dane Everitt
2019-03-24 17:27:14 -07:00
parent 80b4da9284
commit a3d5bf7982
7 changed files with 166 additions and 86 deletions

34
environment/docker.go Normal file
View File

@@ -0,0 +1,34 @@
package environment
import (
"github.com/pterodactyl/wings"
"os"
)
type Docker struct {
*Controller
// Defines the configuration for the Docker instance that will allow us to connect
// and create and modify containers.
Configuration wings.DockerConfiguration
}
// Ensure that the Docker environment is always implementing all of the methods
// from the base environment interface.
var _ Environment = (*Docker)(nil)
func (d *Docker) Exists() bool {
return true
}
func (d *Docker) Start() error {
return nil
}
func (d *Docker) Stop() error {
return nil
}
func (d *Docker) Terminate(signal os.Signal) error {
return nil
}