MCPcopy
hub / github.com/moby/moby / dummyObject

Struct dummyObject

daemon/libnetwork/datastore/datastore_test.go:70–81  ·  view source on GitHub ↗

dummy data used to test the datastore

Source from the content-addressed store, hash-verified

68
69// dummy data used to test the datastore
70type dummyObject struct {
71 Name string `kv:"leaf"`
72 NetworkType string `kv:"leaf"`
73 EnableIPv6 bool `kv:"leaf"`
74 Rec *recStruct `kv:"recursive"`
75 Dict map[string]*recStruct `kv:"iterative"`
76 Generic options.Generic `kv:"iterative"`
77 ID string
78 DBIndex uint64
79 DBExists bool
80 ReturnValue bool
81}
82
83func (n *dummyObject) Key() []string {
84 return []string{dummyKey, n.ID}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected