builds

package
v0.0.0-...-c009a92 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 9 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(counter metric.Int64UpDownCounter) *BuildCache

func (*BuildCache) Append

func (c *BuildCache) Append(envID string, buildID uuid.UUID, log string) error

Append appends logs to the build.

func (*BuildCache) Create

func (c *BuildCache) Create(envID string, buildID uuid.UUID, teamID uuid.UUID) 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(envID string, buildID, teamID uuid.UUID)

func (*BuildCache) Get

func (c *BuildCache) Get(envID string, buildID uuid.UUID) (*BuildInfo, error)

Get returns the build info.

func (*BuildCache) SetDone

func (c *BuildCache) SetDone(envID string, buildID uuid.UUID, status api.TemplateBuildStatus) error

SetDone marks the build as finished.

type BuildInfo

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

func (*BuildInfo) GetBuildID

func (b *BuildInfo) GetBuildID() uuid.UUID

func (*BuildInfo) GetLogs

func (b *BuildInfo) GetLogs() []string

func (*BuildInfo) GetStatus

func (b *BuildInfo) GetStatus() api.TemplateBuildStatus

func (*BuildInfo) GetTeamID

func (b *BuildInfo) GetTeamID() uuid.UUID

Jump to

Keyboard shortcuts

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