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 (
|
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,
|
|
@ -1,4 +1,4 @@
|
||||||
package cluster
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
Loading…
Reference in New Issue