models

package
v0.0.0-...-0be4235 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PENDING = iota
	DONE
	FAILED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID             string            `json:"id" db:"id"`
	Name           string            `json:"name" db:"name"`
	OSTemplate     string            `json:"ostemplate" db:"os_template"`
	Parameters     map[string]string `json:"parameters" db:"-"`
	ParametersJSON sql.NullString    `db:"parameters"`
	CreatedAt      time.Time         `json:"created_at" db:"created_at"`
}

func (*Container) UnmarshalParametersDB

func (c *Container) UnmarshalParametersDB() error

type Job

type Job struct {
	ID         string          `json:"id" db:"id"`
	Type       string          `json:"type" db:"type"`
	Status     JobStatus       `json:"status,omitempty" db:"status"`
	Payload    json.RawMessage `json:"payload" db:"payload"`
	EntityType sql.NullString  `json:"entity_type,omitempty" db:"entity_type"`
	EntityID   sql.NullString  `json:"entity_id,omitempty" db:"entity_id"`
}

type JobStatus

type JobStatus int

Jump to

Keyboard shortcuts

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