Documentation ¶
Index ¶
- Constants
- func Reset(cacheDir string) error
- type Client
- type DB
- func (db *DB) Close() error
- func (db *DB) Dir() string
- func (db *DB) Init() error
- func (db *DB) InsertIndexes(indexes []types.Index) error
- func (db *DB) SelectIndexByArtifactIDAndGroupID(artifactID, groupID string) (types.Index, error)
- func (db *DB) SelectIndexBySha1(sha1 string) (types.Index, error)
- func (db *DB) SelectIndexesByArtifactIDAndFileType(artifactID, version string, fileType types.ArchiveType) ([]types.Index, error)
- func (db *DB) VacuumDB() error
- type Metadata
Constants ¶
View Source
const (
SchemaVersion = 1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewMetadata ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) SelectIndexByArtifactIDAndGroupID ¶
func (*DB) SelectIndexesByArtifactIDAndFileType ¶
func (db *DB) SelectIndexesByArtifactIDAndFileType(artifactID, version string, fileType types.ArchiveType) ([]types.Index, error)
SelectIndexesByArtifactIDAndFileType returns all indexes for `artifactID` + `fileType` if `version` exists for them
Click to show internal directories.
Click to hide internal directories.