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) 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) 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) 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) ToPB ¶
func (w *Worker) ToPB() *mshipadminpb.Worker
Click to show internal directories.
Click to hide internal directories.