mirror of https://github.com/docker/docs.git
Store: Move the store into the state package.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
410e7969b7
commit
7cc70ee276
|
@ -0,0 +1,10 @@
|
|||
package state
|
||||
|
||||
import (
|
||||
"github.com/samalba/dockerclient"
|
||||
)
|
||||
|
||||
type RequestedState struct {
|
||||
Name string
|
||||
Config *dockerclient.ContainerConfig
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package cluster
|
||||
package state
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -9,8 +9,6 @@ import (
|
|||
"path"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
|
||||
"github.com/samalba/dockerclient"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -26,11 +24,6 @@ type Store struct {
|
|||
sync.RWMutex
|
||||
}
|
||||
|
||||
type RequestedState struct {
|
||||
Name string
|
||||
Config *dockerclient.ContainerConfig
|
||||
}
|
||||
|
||||
func NewStore(rootdir string) *Store {
|
||||
return &Store{
|
||||
RootDir: rootdir,
|
|
@ -1,4 +1,4 @@
|
|||
package cluster
|
||||
package state
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
Loading…
Reference in New Issue