Documentation ¶
Overview ¶
Package database is responsible for Weles system's job artifact storage.
Index ¶
- type ArtifactDB
- func (aDB *ArtifactDB) Close() error
- func (aDB *ArtifactDB) Filter(filter weles.ArtifactFilter, sorter weles.ArtifactSorter, ...) ([]weles.ArtifactInfo, weles.ListInfo, error)
- func (aDB *ArtifactDB) InsertArtifactInfo(ai *weles.ArtifactInfo) (err error)
- func (aDB *ArtifactDB) Open(dbPath string) error
- func (aDB *ArtifactDB) SelectPath(path weles.ArtifactPath) (weles.ArtifactInfo, error)
- func (aDB *ArtifactDB) SetStatus(change weles.ArtifactStatusChange) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactDB ¶
type ArtifactDB struct {
// contains filtered or unexported fields
}
ArtifactDB is responsible for database connection and queries.
func (*ArtifactDB) Filter ¶
func (aDB *ArtifactDB) Filter(filter weles.ArtifactFilter, sorter weles.ArtifactSorter, paginator weles.ArtifactPagination) ([]weles.ArtifactInfo, weles.ListInfo, error)
Filter fetches elements matching ArtifactFilter from database.
func (*ArtifactDB) InsertArtifactInfo ¶
func (aDB *ArtifactDB) InsertArtifactInfo(ai *weles.ArtifactInfo) (err error)
InsertArtifactInfo inserts information about artifact to database.
func (*ArtifactDB) Open ¶
func (aDB *ArtifactDB) Open(dbPath string) error
Open opens database connection.
func (*ArtifactDB) SelectPath ¶
func (aDB *ArtifactDB) SelectPath(path weles.ArtifactPath) (weles.ArtifactInfo, error)
SelectPath selects artifact from database based on its path.
func (*ArtifactDB) SetStatus ¶
func (aDB *ArtifactDB) SetStatus(change weles.ArtifactStatusChange) error
SetStatus changes artifact's status in ArtifactDB.
Click to show internal directories.
Click to hide internal directories.