Versions in this module Expand all Collapse all v0 v0.2.1 Oct 19, 2026 Changes in this version + func PatchManifest(content []byte, pointer, expected, desired string) ([]byte, error) + func ReadManifestField(content []byte, pointer string) (string, error) + type Configuration struct + DeadlineSeconds int64 + DeliveryRepositoryID string + Enabled bool + Environment string + HealthChecks []string + HealthPublicKey string + ImageRepository string + ManifestPath string + MaxEvidenceAgeSeconds int64 + ObservationSeconds int64 + Pointer string + PromoteFrom string + ProvenancePublicKey string + RecoveryAllowed bool + SourceRepositoryID string + TargetBranch string + Version int64 + type Detail struct + Gate Gate + Health *HealthReport + Promotion Promotion + type Gate struct + After string + Before string + Blockers []string + Configuration Configuration + Decision policy.Result + Delivery forge.RepoRef + DeliveryConnectionID string + DeliveryConnectionVersion int64 + DeliveryPolicyHash string + ExpiresAt time.Time + ID string + ManifestSHA256 string + OperationID string + PatchedManifest []byte + Request PreviewRequest + Source forge.RepoRef + SourceConnectionID string + SourceConnectionVersion int64 + SourcePolicyHash string + TargetSHA string + type HealthReport struct + ArtifactDigest string + Checks map[string]bool + ConfigurationVersion int64 + DeliveryRevision string + Environment string + Healthy bool + Nonce string + ObservedAt time.Time + OrgID string + PromotionID string + SourceSHA string + type PreviewRequest struct + ArtifactDigest string + ChangeID string + Provenance deployment.SignedProvenance + RecoveryOf string + RestorePromotionID string + SourceSHA string + type Promotion struct + Branch string + CancelRequested bool + CandidateSHA string + Change *forge.Change + CreatedAt time.Time + DeliveryRepositoryID string + Environment string + FinishedAt *time.Time + GateID string + ID string + MergeSHA string + Reason string + RecoveryOf string + RequestedBy string + SourceRepositoryID string + State string + UpdatedAt time.Time + Version int64 + type Service struct + func New(db *store.Store, identity *auth.Service, connections *connections.Service, ...) *Service + func (s *Service) Cancel(ctx context.Context, session auth.Session, org, id string, expected int64, ...) (Promotion, error) + func (s *Service) CheckMergeTx(ctx context.Context, tx pgx.Tx, org, repo string, snapshot forge.MergeEvidence, ...) (string, error) + func (s *Service) Configurations(ctx context.Context, session auth.Session, org string) ([]Configuration, error) + func (s *Service) Continue(ctx context.Context, session auth.Session, org, id, request string) (Promotion, error) + func (s *Service) Get(ctx context.Context, session auth.Session, org, id string) (Detail, error) + func (s *Service) List(ctx context.Context, session auth.Session, org, env, cursor string, limit int) (domain.Page[Promotion], error) + func (s *Service) MergePreview(ctx context.Context, session auth.Session, org, id, method, request string) (mergecontrol.Gate, error) + func (s *Service) Observe(ctx context.Context, org, id string) (Promotion, error) + func (s *Service) ObserveAs(ctx context.Context, session auth.Session, org, id string) (Promotion, error) + func (s *Service) Preview(ctx context.Context, session auth.Session, org, env string, in PreviewRequest, ...) (Gate, error) + func (s *Service) PutConfiguration(ctx context.Context, session auth.Session, org string, c Configuration, ...) (Configuration, error) + func (s *Service) ReceiveHealth(ctx context.Context, org, id string, in HealthReport, signature string) error + func (s *Service) RegisterGateAuthority(check func(context.Context, pgx.Tx, string, string) error) + func (s *Service) Request(ctx context.Context, session auth.Session, org, gateID, key, request string) (Promotion, error) + func (s *Service) RequestMerge(ctx context.Context, session auth.Session, ...) (mergecontrol.Operation, error) + func (s *Service) Run(ctx context.Context) error