瀏覽代碼

Remove unuse slice in registry

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
yuexiao-wang 8 年之前
父節點
當前提交
3ed06f9670
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      registry/types.go

+ 1 - 4
registry/types.go

@@ -5,15 +5,12 @@ import (
 	"github.com/docker/docker/reference"
 	"github.com/docker/docker/reference"
 )
 )
 
 
-// RepositoryData tracks the image list, list of endpoints, and list of tokens
-// for a repository
+// RepositoryData tracks the image list, list of endpoints for a repository
 type RepositoryData struct {
 type RepositoryData struct {
 	// ImgList is a list of images in the repository
 	// ImgList is a list of images in the repository
 	ImgList map[string]*ImgData
 	ImgList map[string]*ImgData
 	// Endpoints is a list of endpoints returned in X-Docker-Endpoints
 	// Endpoints is a list of endpoints returned in X-Docker-Endpoints
 	Endpoints []string
 	Endpoints []string
-	// Tokens is currently unused (remove it?)
-	Tokens []string
 }
 }
 
 
 // ImgData is used to transfer image checksums to and from the registry
 // ImgData is used to transfer image checksums to and from the registry