pgstore

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pgstore persists opaque runkit approval checkpoints in PostgreSQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open(ctx context.Context, dsn string) (*Store, error)

func (*Store) ApproveAndLease

func (s *Store) ApproveAndLease(ctx context.Context, request runkit.ApprovalLeaseRequest) (runkit.ApprovalCheckpoint, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) CompleteLease

func (s *Store) CompleteLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error

func (*Store) CreateCheckpoint

func (s *Store) CreateCheckpoint(ctx context.Context, checkpoint runkit.ApprovalCheckpoint) error

func (*Store) ExpireCheckpoints

func (s *Store) ExpireCheckpoints(ctx context.Context, now time.Time) (int, error)

func (*Store) FailLease

func (s *Store) FailLease(ctx context.Context, completion runkit.CheckpointLeaseCompletion) error

func (*Store) FailPendingCheckpoint

func (s *Store) FailPendingCheckpoint(ctx context.Context, request runkit.PendingCheckpointFailure) error

func (*Store) GetCheckpoint

func (s *Store) GetCheckpoint(ctx context.Context, checkpointID, tenantID string) (runkit.ApprovalCheckpoint, error)

func (*Store) RejectCheckpoint

func (s *Store) RejectCheckpoint(ctx context.Context, request runkit.ApprovalLeaseRequest) error

Jump to

Keyboard shortcuts

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