Documentation ¶
Index ¶
- func IsErrExists(err error) bool
- func IsErrNotFound(err error) bool
- func ListBranchesEdgesTriggersFromCollections(ctx context.Context, q sqlx.QueryerContext, postMigration bool) ([]*Branch, []*Edge, []*BranchTrigger, error)
- func Migrate(state migrations.State) migrations.State
- type Branch
- type BranchTrigger
- type Commit
- type CommitAncestry
- type CommitInfo
- type Edge
- type ErrExists
- type ErrNotFound
- type Repo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrExists ¶
IsErrExists determines if an error is an ErrExists error
func IsErrNotFound ¶
IsErrNotFound determines if an error is an ErrNotFound error
func ListBranchesEdgesTriggersFromCollections ¶
func ListBranchesEdgesTriggersFromCollections(ctx context.Context, q sqlx.QueryerContext, postMigration bool) ([]*Branch, []*Edge, []*BranchTrigger, error)
func Migrate ¶
func Migrate(state migrations.State) migrations.State
Types ¶
type BranchTrigger ¶
type Commit ¶
type Commit struct { IntID uint64 `db:"int_id"` CommitInfo CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
func InfoToCommit ¶
type CommitAncestry ¶
type CommitAncestry struct { ParentCommit string `db:"parent_commit"` ChildCommits []string `db:"child_commits"` }
func InfoToCommitAncestry ¶
func InfoToCommitAncestry(commitInfo *pfs.CommitInfo) *CommitAncestry
type CommitInfo ¶
type CommitInfo struct { CommitSetID string `db:"commit_set_id"` CommitID string `db:"commit_id"` RepoID uint64 `db:"repo_id"` Origin string `db:"origin"` Description string `db:"description"` StartTime sql.NullTime `db:"start_time"` FinishingTime sql.NullTime `db:"finishing_time"` FinishedTime sql.NullTime `db:"finished_time"` CompactingTime sql.NullInt64 `db:"compacting_time_s"` ValidatingTime sql.NullInt64 `db:"validating_time_s"` Error string `db:"error"` Size int64 `db:"size"` RepoName string `db:"repo_name"` RepoType string `db:"repo_type"` ProjectName string `db:"proj_name"` BranchID sql.NullInt64 `db:"branch_id"` BranchName sql.NullString `db:"branch_name"` }
func ListCommitsFromCollection ¶
func ListCommitsFromCollection(ctx context.Context, q sqlx.QueryerContext) ([]CommitInfo, map[string]string, error)
type ErrExists ¶
ErrExists indicates that a key was found to exist when it was expected not to.
func (ErrExists) GRPCStatus ¶
type ErrNotFound ¶
ErrNotFound indicates that a key was not found when it was expected to exist.
func (ErrNotFound) Error ¶
func (err ErrNotFound) Error() string
func (ErrNotFound) GRPCStatus ¶
func (e ErrNotFound) GRPCStatus() *status.Status
func (ErrNotFound) Is ¶
func (err ErrNotFound) Is(other error) bool
Click to show internal directories.
Click to hide internal directories.