cache

package
v0.0.0-...-dfd50e4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildCache

type BuildCache struct {
	// contains filtered or unexported fields
}

func NewBuildCache

func NewBuildCache(ctx context.Context, meterProvider metric.MeterProvider) *BuildCache

func (*BuildCache) Create

func (c *BuildCache) Create(teamID string, buildID string, logs *buildlogger.LogEntryLogger) (*BuildInfo, error)

Create creates a new build if it doesn't exist in the cache or the build was already finished.

func (*BuildCache) Delete

func (c *BuildCache) Delete(buildID string)

func (*BuildCache) Get

func (c *BuildCache) Get(buildID string) (*BuildInfo, error)

Get returns the build info.

type BuildInfo

type BuildInfo struct {
	TeamID string

	Result *utils.SetOnce[BuildInfoResult]
	// contains filtered or unexported fields
}

func (*BuildInfo) GetLogs

func (*BuildInfo) GetResult

func (b *BuildInfo) GetResult() *BuildInfoResult

func (*BuildInfo) GetStatus

func (*BuildInfo) IsRunning

func (b *BuildInfo) IsRunning() bool

func (*BuildInfo) SetFail

func (*BuildInfo) SetSuccess

func (b *BuildInfo) SetSuccess(metadata *template_manager.TemplateBuildMetadata)

Jump to

Keyboard shortcuts

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