ci

package
v0.0.0-...-711d027 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: GPL-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GCLocal

func GCLocal(ctx context.Context, cfg GCConfig) error

func RunWorker

func RunWorker(ctx context.Context, cfg WorkerConfig) error

func Start

func Start(ctx context.Context, cfg StartConfig) error

Types

type CiArgs

type CiArgs struct {

	// what to watch and build
	Channel  string
	StyxRepo RepoConfig

	// where to copy it
	CopyDest            string
	ManifestUpstream    string
	PublicCacheUpstream string

	// state
	LastRelID      string   `json:",omitempty"` // "nixos-23.11.7609.5c2ec3a5c2ee"
	LastStyxCommit string   `json:",omitempty"`
	PrevNames      []string `json:",omitempty"`
	LastGC         int64    `json:",omitempty"` // unix seconds
}

type GCConfig

type GCConfig struct {
	Bucket string
	MaxAge time.Duration
}

type RepoConfig

type RepoConfig struct {
	Repo   string
	Branch string
}

type StartConfig

type StartConfig struct {
	TemporalParams string
	Args           CiArgs
}

type WorkerConfig

type WorkerConfig struct {
	TemporalParams string
	SmtpParams     string

	RunWorker      bool
	RunScaler      bool
	RunHeavyWorker bool

	ScaleInterval time.Duration
	AsgGroupName  string

	CacheSignKeySSM string

	ManifestPubKeys    []string
	ManifestSignKeySSM []string

	CSWCfg manifester.ChunkStoreWriteConfig
	MBCfg  manifester.ManifestBuilderConfig
}

Jump to

Keyboard shortcuts

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