Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultV2Client = newV2Client()
DefaultV2Client is the only one client. Because of v2Client maintainers the revision and message cache(todo), so we do not see there are multi-clients.
View Source
var Versioner = etcd3.Versioner
Functions ¶
func StorageInit ¶
func StorageInit()
StorageInit must be called before using imitator storage (run metaserver or metamanager)
Types ¶
type Client ¶
type Client interface { // This set of functions is for metamanager // Inject the msg to the backend storage Inject(msg model.Message) InsertOrUpdateObj(ctx context.Context, obj runtime.Object) error DeleteObj(ctx context.Context, obj runtime.Object) error GetRevision() uint64 SetRevision(version interface{}) // This set of functions for upper storage List(ctx context.Context, key string) (Resp, error) Get(ctx context.Context, key string) (Resp, error) Watch(ctx context.Context, key string, ResourceVersion uint64) <-chan watch.Event }
Click to show internal directories.
Click to hide internal directories.