Documentation
¶
Overview ¶
Package postgres provides the durable PostgreSQL adapter for the control-plane contract.
Index ¶
- Variables
- type Store
- func (s *Store) AppendCommit(ctx context.Context, commit controlplane.Commit) error
- func (s *Store) Backend() string
- func (s *Store) CheckpointLeadership(ctx context.Context, next controlplane.State) error
- func (s *Store) Close() error
- func (s *Store) Health(ctx context.Context) error
- func (s *Store) LoadState(ctx context.Context, clusterID string) (controlplane.State, error)
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) Prepare(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidStore = errors.New("invalid control-plane PostgreSQL store") ErrStateNotFound = controlplane.ErrStateNotFound ErrCommitConflict = errors.New("control-plane commit conflicts with an existing tuple") ErrStaleCommit = errors.New("control-plane commit is stale") ErrSequenceGap = errors.New("control-plane commit has a revision gap") ErrWritesFrozen = errors.New("control-plane writes are frozen") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppendCommit ¶
func (*Store) CheckpointLeadership ¶
CheckpointLeadership persists a metadata-only leader/term/epoch transition after native-raft has proven that the desired revision and nonce history are unchanged. It never writes a new desired-state commit and therefore cannot be used to bypass normal proposal sequencing.
func (*Store) Health ¶
Health verifies that the PostgreSQL connection is usable before startup reads the control-plane snapshot.
Click to show internal directories.
Click to hide internal directories.