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) Clean() error
 - func (c *ModelAdaptor) Create(ctx context.Context, d *model.KVPair) (*model.KVPair, error)
 - func (c *ModelAdaptor) Delete(ctx context.Context, k model.Key, rev string) (*model.KVPair, error)
 - func (c *ModelAdaptor) EnsureInitialized() error
 - func (c *ModelAdaptor) Get(ctx context.Context, k model.Key, rev string) (*model.KVPair, error)
 - func (c *ModelAdaptor) List(ctx context.Context, l model.ListInterface, rev string) (*model.KVPairList, error)
 - func (c *ModelAdaptor) Syncer(callbacks api.SyncerCallbacks) api.Syncer
 - func (c *ModelAdaptor) Update(ctx context.Context, d *model.KVPair) (*model.KVPair, error)
 - func (c *ModelAdaptor) Watch(ctx context.Context, l model.ListInterface, revision string) (api.WatchInterface, 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 api.Client) *ModelAdaptor
func (*ModelAdaptor) Apply ¶
Set an existing entry in the datastore. This ignores whether an entry already exists.
func (*ModelAdaptor) Clean ¶
func (c *ModelAdaptor) Clean() error
func (*ModelAdaptor) Create ¶
Create an entry in the datastore. This errors if the entry already exists.
func (*ModelAdaptor) Delete ¶
Delete an entry in the datastore. This errors if the entry does not exists.
func (*ModelAdaptor) EnsureInitialized ¶
func (c *ModelAdaptor) EnsureInitialized() error
func (*ModelAdaptor) Get ¶
Get an entry from the datastore. This errors if the entry does not exist.
func (*ModelAdaptor) List ¶
func (c *ModelAdaptor) List(ctx context.Context, l model.ListInterface, rev string) (*model.KVPairList, error)
List entries in the datastore. This may return an empty list of there are no entries matching the request in the ListInterface.
func (*ModelAdaptor) Syncer ¶
func (c *ModelAdaptor) Syncer(callbacks api.SyncerCallbacks) api.Syncer
func (*ModelAdaptor) Update ¶
Update an existing entry in the datastore. This errors if the entry does not exist.
func (*ModelAdaptor) Watch ¶
func (c *ModelAdaptor) Watch(ctx context.Context, l model.ListInterface, revision string) (api.WatchInterface, error)
      
      Source Files
      ¶
    
- compat.go
 
 Click to show internal directories. 
   Click to hide internal directories.