database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package database is responsible for Weles system's job artifact storage.

Index

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) Close

func (aDB *ArtifactDB) Close() error

Close closes the database.

func (*ArtifactDB) Filter

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.

Jump to

Keyboard shortcuts

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