Documentation ¶
Overview ¶
Package postgres is a baur-storage implementation storing data in postgresql.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateRelease(ctx context.Context, releaseName string, createdAt time.Time, taskRunIDs []int, ...) error
- func (c *Client) Init(ctx context.Context) error
- func (c *Client) Inputs(ctx context.Context, taskRunID int) (*storage.Inputs, error)
- func (c *Client) IsCompatible(ctx context.Context) error
- func (c *Client) LatestTaskRunByDigest(ctx context.Context, appName, taskName, totalInputDigest string) (*storage.TaskRunWithID, error)
- func (c *Client) MaxSchemaVersion() int32
- func (c *Client) Outputs(ctx context.Context, taskRunID int) ([]*storage.Output, error)
- func (c *Client) ReleaseExists(ctx context.Context, name string) (bool, error)
- func (c *Client) ReleaseMetadata(ctx context.Context, releaseName string) ([]byte, error)
- func (c *Client) ReleaseTaskRuns(ctx context.Context, releaseName string) ([]*storage.ReleaseTaskRunsResult, error)
- func (c *Client) ReleasesDelete(ctx context.Context, before time.Time, pretend bool) (*storage.ReleasesDeleteResult, error)
- func (c *Client) SaveTaskRun(ctx context.Context, taskRun *storage.TaskRunFull) (int, error)
- func (c *Client) SchemaVersion(ctx context.Context) (int32, error)
- func (c *Client) TaskRun(ctx context.Context, id int) (*storage.TaskRunWithID, error)
- func (c *Client) TaskRuns(ctx context.Context, filters []*storage.Filter, sorters []*storage.Sorter, ...) error
- func (c *Client) TaskRunsDelete(ctx context.Context, before time.Time, pretend bool) (*storage.TaskRunsDeleteResult, error)
- func (c *Client) Upgrade(ctx context.Context) error
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a postgres storage client
func (*Client) CreateRelease ¶
func (*Client) Init ¶
Init creates the baur tables in the postgresql database. If the database already exist, storage.ErrExist is returned.
func (*Client) IsCompatible ¶
IsCompatible checks if the database schema exist and has the required migration version.
func (*Client) LatestTaskRunByDigest ¶
func (*Client) MaxSchemaVersion ¶ added in v5.1.0
func (*Client) ReleaseExists ¶
func (*Client) ReleaseMetadata ¶
func (*Client) ReleaseTaskRuns ¶
func (*Client) ReleasesDelete ¶
func (*Client) SaveTaskRun ¶
func (*Client) TaskRunsDelete ¶
Click to show internal directories.
Click to hide internal directories.