vm

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Create

func (c *VMJobColl) Create(obj *vm.VMJob) error

func (*VMJobColl) DeleteByID

func (c *VMJobColl) DeleteByID(idString string, status string) error

func (*VMJobColl) EnsureIndex

func (c *VMJobColl) EnsureIndex(ctx context.Context) error

func (*VMJobColl) FindByID

func (c *VMJobColl) FindByID(idString string) (*vm.VMJob, error)

func (*VMJobColl) FindByOpts

func (c *VMJobColl) FindByOpts(opts VMJobFindOption) (*vm.VMJob, error)

func (*VMJobColl) FindOldestByTags

func (c *VMJobColl) FindOldestByTags(labels []string) (*vm.VMJob, error)

func (*VMJobColl) GetCollectionName

func (c *VMJobColl) GetCollectionName() string

func (*VMJobColl) ListByOpts

func (c *VMJobColl) ListByOpts(opts *VMJobOpts) ([]*vm.VMJob, error)

func (*VMJobColl) Update

func (c *VMJobColl) Update(idString string, obj *vm.VMJob) error

func (*VMJobColl) UpdateStatus

func (e *VMJobColl) UpdateStatus(idString string, status string) error

type VMJobFindOption

type VMJobFindOption struct {
	JobID        int
	TaskID       int64
	ProjectName  string
	WorkflowName string
	JobName      string
}

type VMJobOpts

type VMJobOpts struct {
	Names  []string
	Status string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL