models

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const ItemVersion uint64 = 3

ItemVersion allows the worker to detect items that were queued before an Vela server upgrade or downgrade, so it can handle such stale data gracefully. For example, the worker could fail a stale build or ask the server to recompile it. This is not a public API and is unrelated to the version key in pipeline yaml.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Build *api.Build `json:"build"`
	// The 0-value is the implicit ItemVersion for queued Items that pre-date adding the field.
	ItemVersion uint64 `json:"item_version"`
}

Item is the queue representation of an item to publish to the queue.

func ToItem

func ToItem(b *api.Build) *Item

ToItem creates a queue item from a build.

Jump to

Keyboard shortcuts

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