Skip to content

Commit

Permalink
Remove Name field from Object
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Lehmann <[email protected]>
  • Loading branch information
aaronlehmann committed Mar 21, 2017
1 parent 6622457 commit 48b7518
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion manager/state/store/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const (

func init() {
register(ObjectStoreConfig{
Name: tableCluster,
Table: &memdb.TableSchema{
Name: tableCluster,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const tableExtension = "extension"

func init() {
register(ObjectStoreConfig{
Name: tableExtension,
Table: &memdb.TableSchema{
Name: tableExtension,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
2 changes: 1 addition & 1 deletion manager/state/store/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var (

func register(os ObjectStoreConfig) {
objectStorers = append(objectStorers, os)
schema.Tables[os.Name] = os.Table
schema.Tables[os.Table.Name] = os.Table
}

// MemoryStore is a concurrency-safe, in-memory implementation of the Store
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const tableNetwork = "network"

func init() {
register(ObjectStoreConfig{
Name: tableNetwork,
Table: &memdb.TableSchema{
Name: tableNetwork,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const tableNode = "node"

func init() {
register(ObjectStoreConfig{
Name: tableNode,
Table: &memdb.TableSchema{
Name: tableNode,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
// ObjectStoreConfig provides the necessary methods to store a particular object
// type inside MemoryStore.
type ObjectStoreConfig struct {
Name string
Table *memdb.TableSchema
Save func(ReadTx, *api.StoreSnapshot) error
Restore func(Tx, *api.StoreSnapshot) error
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const tableResource = "resource"

func init() {
register(ObjectStoreConfig{
Name: tableResource,
Table: &memdb.TableSchema{
Name: tableResource,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const tableSecret = "secret"

func init() {
register(ObjectStoreConfig{
Name: tableSecret,
Table: &memdb.TableSchema{
Name: tableSecret,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const tableService = "service"

func init() {
register(ObjectStoreConfig{
Name: tableService,
Table: &memdb.TableSchema{
Name: tableService,
Indexes: map[string]*memdb.IndexSchema{
Expand Down
1 change: 0 additions & 1 deletion manager/state/store/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const tableTask = "task"

func init() {
register(ObjectStoreConfig{
Name: tableTask,
Table: &memdb.TableSchema{
Name: tableTask,
Indexes: map[string]*memdb.IndexSchema{
Expand Down

0 comments on commit 48b7518

Please sign in to comment.