Store: Move the store into the state package.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-01-12 09:13:29 -08:00
parent 410e7969b7
commit 7cc70ee276
3 changed files with 12 additions and 9 deletions

10
state/state.go Normal file
View File

@ -0,0 +1,10 @@
package state
import (
"github.com/samalba/dockerclient"
)
type RequestedState struct {
Name string
Config *dockerclient.ContainerConfig
}

View File

@ -1,4 +1,4 @@
package cluster package state
import ( import (
"encoding/json" "encoding/json"
@ -9,8 +9,6 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"sync" "sync"
"github.com/samalba/dockerclient"
) )
var ( var (
@ -26,11 +24,6 @@ type Store struct {
sync.RWMutex sync.RWMutex
} }
type RequestedState struct {
Name string
Config *dockerclient.ContainerConfig
}
func NewStore(rootdir string) *Store { func NewStore(rootdir string) *Store {
return &Store{ return &Store{
RootDir: rootdir, RootDir: rootdir,

View File

@ -1,4 +1,4 @@
package cluster package state
import ( import (
"io/ioutil" "io/ioutil"