<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nomad-temporal-jobs Go API :: nomad-temporal-jobs</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/index.html</link><description>Generated documentation for the Go packages in this project. shared OpenTelemetry tracing, Prometheus metrics, structured logging, and Nomad client factory.
backup/activities Nomad, Consul, and PostgreSQL snapshot activities with S3 upload and retention cleanup.
backup/workflows Sequential backup orchestration with non-fatal S3 uploads and configurable retention.
trivyscan/activities Image discovery from Nomad, Trivy scanning, and PostgreSQL result storage.
trivyscan/workflows Batched parallel scanning with transient vs permanent error classification.
nodecleanup/activities Node discovery, SSH-based orphaned directory cleanup, Docker pruning, and registry GC saga steps.</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://nomad-temporal-jobs.munchbox.cc/godoc/index.xml" rel="self" type="application/rss+xml"/><item><title>backup-activities</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/backup-activities/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/backup-activities/index.html</guid><description>import "munchbox/temporal-workers/backup/activities" Index type Activities func New(cfg Config) (*Activities, error) func (a *Activities) BackupPostgresDatabase(ctx context.Context, database string) (string, error) func (a *Activities) BackupPostgresGlobals(ctx context.Context) (string, error) func (a *Activities) CleanupOldBackups(ctx context.Context, retentionDays int) error func (a *Activities) CleanupOldS3Backups(ctx context.Context, retentionDays int) error func (a *Activities) ListPostgresDatabases(ctx context.Context) ([]string, error) func (a *Activities) TakeConsulSnapshot(ctx context.Context) (string, error) func (a *Activities) TakeNomadSnapshot(ctx context.Context) (string, error) func (a *Activities) TakeRegistryBackup(ctx context.Context) (string, error) func (a *Activities) UploadToS3(ctx context.Context, localPath string, keyPrefix string) (string, error) type BackupConfig func (c *BackupConfig) ApplyDefaults() type BackupResult type Config func (c *Config) Validate() error type DatabaseBackup</description></item><item><title>backup-workflows</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/backup-workflows/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/backup-workflows/index.html</guid><description>import "munchbox/temporal-workers/backup/workflows" Index func Backup(ctx workflow.Context, config activities.BackupConfig) (*activities.BackupResult, error) func Backup func Backup(ctx workflow.Context, config activities.BackupConfig) (*activities.BackupResult, error) Backup runs the three snapshot legs concurrently, then retention cleanup once they all finish.
Generated by gomarkdoc</description></item><item><title>nodecleanup-activities</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/nodecleanup-activities/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/nodecleanup-activities/index.html</guid><description>import "munchbox/temporal-workers/nodecleanup/activities" Index func HumanBytes(n int64) string type Activities func New(cfg Config) *Activities func (a *Activities) CleanupNodeViaSSH(ctx context.Context, node NodeInfo, config CleanupConfig) (CleanupResult, error) func (a *Activities) FindRegistryNode(ctx context.Context, jobName string) (NodeInfo, error) func (a *Activities) GetAllNomadClientNodes(ctx context.Context) ([]NodeInfo, error) func (a *Activities) MeasureRegistryDataDir(ctx context.Context, node NodeInfo, dataDir string) (int64, error) func (a *Activities) RunRegistryGarbageCollect(ctx context.Context, node NodeInfo, config RegistryGCConfig) (RegistryGCRunResult, error) func (a *Activities) ScaleRegistry(ctx context.Context, jobName, groupName string, count int) error func (a *Activities) WaitRegistryAllocRunning(ctx context.Context, jobName string) error func (a *Activities) WaitRegistryAllocsDrained(ctx context.Context, jobName string) error type CleanupConfig type CleanupResult type Config func (c *Config) Validate() type NodeInfo type RegistryGCConfig func (c *RegistryGCConfig) ApplyDefaults() type RegistryGCResult type RegistryGCRunResult</description></item><item><title>nodecleanup-workflows</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/nodecleanup-workflows/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/nodecleanup-workflows/index.html</guid><description>import "munchbox/temporal-workers/nodecleanup/workflows" Index func Cleanup(ctx workflow.Context, config activities.CleanupConfig) ([]activities.CleanupResult, error) func RegistryGC(ctx workflow.Context, config activities.RegistryGCConfig) (result activities.RegistryGCResult, err error) func Cleanup func Cleanup(ctx workflow.Context, config activities.CleanupConfig) ([]activities.CleanupResult, error) Cleanup discovers all Nomad client nodes and performs orphaned data directory removal on each via SSH. Nodes are processed sequentially to avoid overwhelming the cluster. Returns results for all nodes and an error if any node fails.</description></item><item><title>shared</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/shared/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/shared/index.html</guid><description>import "munchbox/temporal-workers/shared" Index func InitTracer(ctx context.Context, serviceName string) func(context.Context) error func NewLogger(serviceName string) (tlog.Logger, *slog.Logger) func NewMetricsHandler(listenAddr string) tclient.MetricsHandler func NewNomadClient() (*api.Client, error) func PeerServiceAttr(name string) attribute.KeyValue func StartClientSpan(ctx context.Context, name string, attrs …attribute.KeyValue) (context.Context, trace.Span) func StartSpan(ctx context.Context, name string, attrs …attribute.KeyValue) (context.Context, trace.Span) func Tracer() trace.Tracer</description></item><item><title>trivyscan-activities</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/trivyscan-activities/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/trivyscan-activities/index.html</guid><description>import "munchbox/temporal-workers/trivyscan/activities" Index type Activities func New(cfg Config) (*Activities, error) func (a *Activities) Close() error func (a *Activities) GetRunningImages(ctx context.Context) ([]string, error) func (a *Activities) SaveScanResult(ctx context.Context, result ScanResult) error func (a *Activities) ScanImage(ctx context.Context, image string) (ScanResult, error) type Config func (c Config) Validate() error type ScanConfig func (c *ScanConfig) ApplyDefaults() type ScanResult type Vulnerability</description></item><item><title>trivyscan-workflows</title><link>https://nomad-temporal-jobs.munchbox.cc/godoc/trivyscan-workflows/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://nomad-temporal-jobs.munchbox.cc/godoc/trivyscan-workflows/index.html</guid><description>import "munchbox/temporal-workers/trivyscan/workflows" Index func Scan(ctx workflow.Context, config activities.ScanConfig) error func Scan func Scan(ctx workflow.Context, config activities.ScanConfig) error Scan discovers running images and scans them with bounded concurrency, saving each result individually to stay under Temporal’s payload limit.</description></item></channel></rss>