ソースを参照

how to maintain the container snapshot struct

Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
Fabio Kung 8 年 前
コミット
2ed6f9257a
1 ファイル変更2 行追加1 行削除
  1. 2 1
      container/snapshot.go

+ 2 - 1
container/snapshot.go

@@ -11,7 +11,8 @@ import (
 	"github.com/docker/go-connections/nat"
 	"github.com/docker/go-connections/nat"
 )
 )
 
 
-// Snapshot is a read only view for Containers
+// Snapshot is a read only view for Containers. It holds all information necessary to serve container queries in a
+// versioned ACID in-memory store. Pointers are avoided here to make sure all values are copied into the store.
 type Snapshot struct {
 type Snapshot struct {
 	ID           string `json:"Id"`
 	ID           string `json:"Id"`
 	Name         string
 	Name         string