Documentation ¶
Index ¶
- type DB
- func (db *DB) AttachInstanceToJob(job *types.Job, instance types.Instance)
- func (db *DB) CreateInstance(instance *types.Instance) (*types.Instance, error)
- func (db *DB) CreateJob(jobFile *types.JobFile) *types.Job
- func (db *DB) CreateMockInstance(id string) *types.Instance
- func (db *DB) CreateMockJob(job *types.Job)
- func (db *DB) DeleteInstance(instance *types.Instance) error
- func (db *DB) DeleteInstanceByProviderID(id string) error
- func (db *DB) GetAllInstances() []types.Instance
- func (db *DB) GetAllInstancesByProvider(provider string) []types.Instance
- func (db *DB) GetAllJobs() []types.Job
- func (db *DB) GetAllRunningInstances() []types.Instance
- func (db *DB) GetInstanceByCedanaID(cid string) types.Instance
- func (db *DB) GetInstanceByProviderId(id string) *types.Instance
- func (db *DB) GetInstancesByCondition(field string, query string) []types.Instance
- func (db *DB) GetInstancesByProvider(provider string) []types.Instance
- func (db *DB) GetInstancesByState(state string) []types.Instance
- func (db *DB) GetJob(id string) *types.Job
- func (db *DB) GetJobByFileName(name string) *types.Job
- func (db *DB) PurgeJobs() error
- func (db *DB) UpdateInstance(instance *types.Instance) error
- func (db *DB) UpdateInstanceByID(instance *types.Instance, id uint) error
- func (db *DB) UpdateJob(job *types.Job) error
- func (db *DB) UpdateJobState(job *types.Job, state core.Flag) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AttachInstanceToJob ¶
func (*DB) CreateInstance ¶
func (*DB) CreateMockInstance ¶ added in v0.2.8
func (*DB) CreateMockJob ¶ added in v1.0.0
func (*DB) DeleteInstance ¶
we implement gorm.Model in the instance struct, so these are soft deletes!
func (*DB) DeleteInstanceByProviderID ¶
func (*DB) GetAllInstances ¶
func (*DB) GetAllInstancesByProvider ¶
func (*DB) GetAllJobs ¶
func (*DB) GetAllRunningInstances ¶
func (*DB) GetInstanceByProviderId ¶
func (*DB) GetInstancesByCondition ¶
func (*DB) GetInstancesByProvider ¶
func (*DB) GetInstancesByState ¶
get conditionally
func (*DB) UpdateInstanceByID ¶
Click to show internal directories.
Click to hide internal directories.