Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface {
Create(snapshot *snapshots.Snapshot) error
ListByView(viewID string) ([]*snapshots.Snapshot, error)
LatestInView(viewID string) (*snapshots.Snapshot, error)
LatestInViewAndWorkspace(viewID, workspaceID string) (*snapshots.Snapshot, error)
Get(ID string) (*snapshots.Snapshot, error)
Update(snapshot *snapshots.Snapshot) error
ListUndeletedInCodebase(codebaseID string) ([]*snapshots.Snapshot, error)
}
func NewRepo ¶
func NewRepo(db *sqlx.DB) Repository
Click to show internal directories.
Click to hide internal directories.