Documentation ¶
Index ¶
- func ToTagsLabelsRules(d *model.KVPair) (t, l, r *model.KVPair)
- type ModelAdaptor
- func (c *ModelAdaptor) Apply(d *model.KVPair) (*model.KVPair, error)
- func (c *ModelAdaptor) Get(k model.Key) (*model.KVPair, error)
- func (c *ModelAdaptor) IsKDD() bool
- func (c *ModelAdaptor) List(l model.ListInterface) ([]*model.KVPair, error)
- func (c *ModelAdaptor) Update(d *model.KVPair) (*model.KVPair, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModelAdaptor ¶
type ModelAdaptor struct {
// contains filtered or unexported fields
}
func NewAdaptor ¶
func NewAdaptor(c *etcdv2.EtcdClient) *ModelAdaptor
func (*ModelAdaptor) Apply ¶
Apply - this just calls through to the datastore driver (the upgrade code only needs Apply to set the Ready flag, so we don't need any of the complicated conversion code here).
func (*ModelAdaptor) Get ¶
Get an entry from the datastore. This errors if the entry does not exist.
func (*ModelAdaptor) IsKDD ¶
func (c *ModelAdaptor) IsKDD() bool
IsKDD() returns true if this backend is KDD. Since the compat module is only used for etcdv2, this returns false.
func (*ModelAdaptor) List ¶
func (c *ModelAdaptor) List(l model.ListInterface) ([]*model.KVPair, error)
List entries in the datastore. This may return an empty list of there are no entries matching the request in the ListInterface.
Click to show internal directories.
Click to hide internal directories.