buildjob

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildJob

type BuildJob struct {
	Repository         string
	Commit             string
	NumberOfExecutions int
}

BuildJob represents a job for the gobuilder to build including the repository and a number of tries already made to build it

func FromBytes

func FromBytes(b []byte) (*BuildJob, error)

FromBytes reads a []byte representation created by ToBytes and returns a reference to the BuildJob object for further usage

func (*BuildJob) ToByte

func (b *BuildJob) ToByte() ([]byte, error)

ToByte creats a gob encoded version of the BuildJob to store in text queues or other locations

type BuildLog added in v1.21.0

type BuildLog struct {
	ID      string
	Success bool
	Time    time.Time
}

BuildLog is a metadata blob to hold state about a log

func LogFromString added in v1.21.0

func LogFromString(s string) (*BuildLog, error)

LogFromString reads a string representation created by ToBytes and returns a reference to the BuildJob object for further usage

func (*BuildLog) ToString added in v1.21.0

func (b *BuildLog) ToString() (string, error)

ToString creats a gob encoded version of the BuildJob to store in text queues or other locations

Jump to

Keyboard shortcuts

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