Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Condition ¶
func Condition(meta *client.RequestMeta, condition *client.QueryMetaData, p storage.SelectionPredicate) error
Types ¶
type APIObjectVersioner ¶
type APIObjectVersioner struct{}
APIObjectVersioner implements versioning and extracting database information for objects that have an embedded ObjectMeta or ListMeta field.
func (APIObjectVersioner) ObjectResourceVersion ¶
func (a APIObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error)
ObjectResourceVersion implements Versioner
func (APIObjectVersioner) UpdateList ¶
func (a APIObjectVersioner) UpdateList(obj runtime.Object, resourceVersion uint64) error
UpdateList implements Versioner
func (APIObjectVersioner) UpdateObject ¶
func (a APIObjectVersioner) UpdateObject(obj runtime.Object, resourceVersion uint64) error
UpdateObject implements Versioner
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func GetCollection ¶
func (*Collection) CreateIndex ¶
func (c *Collection) CreateIndex(meta *client.RequestMeta) error
CreateIndex by runtime object
func (*Collection) GetRequestMeta ¶
func (c *Collection) GetRequestMeta(sess *mgo.Session) *client.RequestMeta
Click to show internal directories.
Click to hide internal directories.