Documentation ¶
Index ¶
- type VMJobColl
- func (c *VMJobColl) Create(obj *vm.VMJob) error
- func (c *VMJobColl) DeleteByID(idString string, status string) error
- func (c *VMJobColl) EnsureIndex(ctx context.Context) error
- func (c *VMJobColl) FindByID(idString string) (*vm.VMJob, error)
- func (c *VMJobColl) FindByOpts(opts VMJobFindOption) (*vm.VMJob, error)
- func (c *VMJobColl) FindOldestByTags(labels []string) (*vm.VMJob, error)
- func (c *VMJobColl) GetCollectionName() string
- func (c *VMJobColl) ListByOpts(opts *VMJobOpts) ([]*vm.VMJob, error)
- func (c *VMJobColl) Update(idString string, obj *vm.VMJob) error
- func (e *VMJobColl) UpdateStatus(idString string, status string) error
- type VMJobFindOption
- type VMJobOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMJobColl ¶
type VMJobColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewVMJobColl ¶
func NewVMJobColl() *VMJobColl
func (*VMJobColl) FindByOpts ¶
func (c *VMJobColl) FindByOpts(opts VMJobFindOption) (*vm.VMJob, error)
func (*VMJobColl) FindOldestByTags ¶
func (*VMJobColl) GetCollectionName ¶
type VMJobFindOption ¶
Click to show internal directories.
Click to hide internal directories.