models

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package models defines all models used within the application. It knows nothing about databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID       uint
	Type     JobType
	Status   JobStatus
	UploadID uint
}

Job is a builds a test, etc.

type JobStatus

type JobStatus int

JobStatus is the status of the job

const (
	JobStatusQueued JobStatus = iota
)

Job Status enum

func (JobStatus) String

func (js JobStatus) String() string

type JobType

type JobType int

JobType is the type of job

const (
	JobTypeBuild JobType = iota
)

Job Type enum

func (JobType) String

func (jt JobType) String() string

type PendingFileUpload

type PendingFileUpload struct {
	ID         uint
	Filename   string
	SHA256Sum  string
	UploadedAt time.Time
	Completed  bool
}

PendingFileUpload is a file that has not yet been associated with a source package upload

type Upload

type Upload struct {
	ID         uint
	Source     string
	Version    string
	Maintainer string
	ChangedBy  string
}

Upload is a package upload

Jump to

Keyboard shortcuts

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