Further refactoring

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2016-08-01 16:05:37 -07:00
parent 0bb2fb04d9
commit c13dbaf6ab
3 changed files with 22 additions and 14 deletions

View file

@ -8,11 +8,10 @@ import (
)
// New creates a new Runtime with options provided
func New(runtimePath string, sandboxDir string, containerDir string) (*Runtime, error) {
func New(runtimePath string, containerDir string) (*Runtime, error) {
r := &Runtime{
name: filepath.Base(runtimePath),
path: runtimePath,
sandboxDir: sandboxDir,
containerDir: containerDir,
}
return r, nil
@ -35,11 +34,6 @@ func (r *Runtime) Path() string {
return r.path
}
// SandboxDir returns the path to the base directory for storing sandbox configurations
func (r *Runtime) SandboxDir() string {
return r.sandboxDir
}
// ContainerDir returns the path to the base directory for storing container configurations
func (r *Runtime) ContainerDir() string {
return r.containerDir