mirror of
https://github.com/docker/docs.git
synced 2026-04-01 08:48:56 +07:00
Store: Move the store into the state package.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
10
state/state.go
Normal file
10
state/state.go
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user