postgresdeploy

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	Name        string      `json:"name"`
	Status      CheckStatus `json:"status"`
	ErrorKind   string      `json:"error_kind,omitempty"`
	Message     string      `json:"message"`
	Remediation string      `json:"remediation,omitempty"`
	Evidence    []Evidence  `json:"evidence,omitempty"`
}

func CheckScopedReaderGrantSQL added in v0.5.5

func CheckScopedReaderGrantSQL(params storepostgres.ScopedReaderGrantSQLParams) Check

func CheckScopedReaderRoleInput added in v0.5.5

func CheckScopedReaderRoleInput(role, database string) Check

func CheckServingDatabaseConnectivityMissing added in v0.5.5

func CheckServingDatabaseConnectivityMissing() Check

func CheckServingRefreshMarkerUnavailable added in v0.5.5

func CheckServingRefreshMarkerUnavailable(errorKind string) Check

func CheckSourceDatabaseConnectivity added in v0.5.5

func CheckSourceDatabaseConnectivity(connectErr error) Check

func CheckSourceDatabaseConnectivityMissing added in v0.5.5

func CheckSourceDatabaseConnectivityMissing() Check

func CheckSourceReadModel added in v0.5.5

func CheckSourceReadModel(ctx context.Context, reader ReadModelStatusReader) Check

func CheckSourceReadModelUnavailable added in v0.5.5

func CheckSourceReadModelUnavailable(errorKind string) Check

func CheckStatementTimeout added in v0.5.5

func CheckStatementTimeout(raw string) Check

type CheckStatus

type CheckStatus string
const (
	CheckPass CheckStatus = "pass"
	CheckWarn CheckStatus = "warn"
	CheckFail CheckStatus = "fail"
)

type Evidence

type Evidence struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type ReadModelStatusReader added in v0.5.5

type ReadModelStatusReader interface {
	ReadModelStatus(context.Context) (*storepostgres.ReadModelStatus, error)
}

type ServingRefreshMarkerOptions

type ServingRefreshMarkerOptions struct {
	Now    time.Time
	MaxAge time.Duration
}

type ServingRefreshMarkerReader

type ServingRefreshMarkerReader interface {
	LatestServingRefreshMarker(context.Context) (*storepostgres.ServingDBRefreshMarker, error)
}

Jump to

Keyboard shortcuts

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