mothership_db

package
v0.0.0-...-483e9f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	PikaTableName      string `pika:"batches"`
	PikaDefaultOrderBy string `pika:"-create_time"`

	Name          string         `db:"name"`
	BatchID       sql.NullString `db:"batch_id" pika:"omitempty"`
	WorkerID      string         `db:"worker_id"`
	CreateTime    time.Time      `db:"create_time" pika:"omitempty"`
	UpdateTime    time.Time      `db:"update_time" pika:"omitempty"`
	SealTime      sql.NullTime   `db:"seal_time"`
	BugtrackerURI sql.NullString `db:"bugtracker_uri"`
}

func (*Batch) GetID

func (b *Batch) GetID() string

func (*Batch) ToPB

func (b *Batch) ToPB() *mothershippb.Batch

type BatchView

type BatchView struct {
	PikaTableName      string `pika:"batches_view"`
	PikaDefaultOrderBy string `pika:"-create_time"`

	Name          string         `db:"name"`
	BatchID       sql.NullString `db:"batch_id" pika:"omitempty"`
	WorkerID      string         `db:"worker_id"`
	CreateTime    time.Time      `db:"create_time" pika:"omitempty"`
	UpdateTime    time.Time      `db:"update_time" pika:"omitempty"`
	SealTime      sql.NullTime   `db:"seal_time"`
	BugtrackerURI sql.NullString `db:"bugtracker_uri"`
	EntryCount    int            `db:"entry_count" pika:"omitempty"`
}

func (*BatchView) GetID

func (b *BatchView) GetID() string

func (*BatchView) ToPB

func (b *BatchView) ToPB() *mothershippb.Batch

type Entry

type Entry struct {
	PikaTableName      string `pika:"entries"`
	PikaDefaultOrderBy string `pika:"-create_time"`

	Name           string                   `db:"name"`
	EntryID        string                   `db:"entry_id"`
	CreateTime     time.Time                `db:"create_time" pika:"omitempty"`
	OSRelease      string                   `db:"os_release"`
	Sha256Sum      string                   `db:"sha256_sum"`
	RepositoryName string                   `db:"repository_name"`
	WorkerID       sql.NullString           `db:"worker_id"`
	BatchName      sql.NullString           `db:"batch_name"`
	UserEmail      sql.NullString           `db:"user_email"`
	CommitURI      string                   `db:"commit_uri"`
	CommitHash     string                   `db:"commit_hash"`
	CommitBranch   string                   `db:"commit_branch"`
	CommitTag      string                   `db:"commit_tag"`
	State          mothershippb.Entry_State `db:"state"`
	PackageName    string                   `db:"package_name"`
}

func (*Entry) GetID

func (e *Entry) GetID() string

func (*Entry) ToPB

func (e *Entry) ToPB() *mothershippb.Entry

type Worker

type Worker struct {
	PikaTableName      string `pika:"workers"`
	PikaDefaultOrderBy string `pika:"-create_time"`

	Name            string       `db:"name"`
	CreateTime      time.Time    `db:"create_time" pika:"omitempty"`
	WorkerID        string       `db:"worker_id"`
	LastCheckinTime sql.NullTime `db:"last_checkin_time"`
	ApiSecret       string       `db:"api_secret"`
}

func (*Worker) GetID

func (w *Worker) GetID() string

func (*Worker) ToPB

func (w *Worker) ToPB() *mshipadminpb.Worker

Jump to

Keyboard shortcuts

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