continuous_integration

package
v0.0.0-...-b95a7b5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package continuous_integration defines some types for getting tryjob-related data into and out of Continuous Integration Systems (e.g. BuildBucket, CirrusCI).

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func SortTryJobsByName

func SortTryJobsByName(xtj []TryJob)

SortTryJobsByName sorts the given slice of TryJobs by DisplayName.

Types

type Client

type Client interface {
	// GetTryJob returns the TryJob corresponding to the given id.
	// Returns ErrNotFound if it doesn't exist.
	GetTryJob(ctx context.Context, id string) (TryJob, error)
}

The Client interface is an abstraction around a Continuous Integration System.

type TryJob

type TryJob struct {
	// SystemID is expected to be unique between all TryJobs for a given System.
	SystemID    string
	System      string
	DisplayName string
	Updated     time.Time
}

Directories

Path Synopsis
Package simple_cis is a simple implementation of CIS that pretends every TryJob exists.
Package simple_cis is a simple implementation of CIS that pretends every TryJob exists.

Jump to

Keyboard shortcuts

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