deployment

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package deployment stores release history and image scan artifacts beside source history on the orchestrator's data volume. Writes are atomic renames within one directory, including when that volume is backed by NFS.

Index

Constants

View Source
const RetainBuilds = 20

Variables

View Source
var ErrNotFound = errors.New("no matching deployment record")

Functions

This section is empty.

Types

type BuildSummary

type BuildSummary struct {
	Sequence int64  `json:"sequence"`
	Created  string `json:"created"`
	Image    string `json:"image,omitempty"`
	OK       bool   `json:"ok"`
}

type Store

type Store struct {
	Dir string
	// contains filtered or unexported fields
}

func (*Store) Build

func (s *Store) Build(ctx context.Context, space, app string, sequence int64) (json.RawMessage, error)

func (*Store) BuildByImage

func (s *Store) BuildByImage(ctx context.Context, space, app, image string) (json.RawMessage, error)

func (*Store) Builds

func (s *Store) Builds(ctx context.Context, space, app string) ([]BuildSummary, error)

func (*Store) ImportBuild

func (s *Store) ImportBuild(ctx context.Context, space, app string, summary BuildSummary, raw json.RawMessage) error

ImportBuild preserves build numbers, timestamps and Git's build-N links. It is idempotent, so an interrupted startup migration can resume.

func (*Store) MarkMigrated

func (s *Store) MarkMigrated() error

func (*Store) Migrated

func (s *Store) Migrated() (bool, error)

func (*Store) PutScan

func (s *Store) PutScan(ctx context.Context, space, app, image string, raw json.RawMessage) error

func (*Store) RecordBuild

func (s *Store) RecordBuild(ctx context.Context, space, app, image string, ok bool, raw json.RawMessage) (int64, error)

func (*Store) RemoveApp

func (s *Store) RemoveApp(space, app string) error

func (*Store) RemoveSpace

func (s *Store) RemoveSpace(space string) error

func (*Store) Scan

func (s *Store) Scan(ctx context.Context, space, app, image string) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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