internal

package
v0.0.0-...-fc7d186 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqliteRepository

type SqliteRepository struct {
	// contains filtered or unexported fields
}

func NewSqliteRepository

func NewSqliteRepository(dsn string) (*SqliteRepository, error)

NewSqliteRepository создает новый репозиторий SQLite3 для артефактов.

func (*SqliteRepository) Add

func (SqliteRepository) Copy

func (SqliteRepository) Delete

func (s SqliteRepository) Delete(a *models.Artifact) error

func (*SqliteRepository) Get

func (s *SqliteRepository) Get(repo, path, name string) *models.Artifact

Get возарщает артефакт по заданным репозиторию, пути, имени, либо `nil`.

func (*SqliteRepository) List

func (s *SqliteRepository) List(repo, path string, count int) []models.Artifact

List возвращает список артефактов по запрошенному пути.

Jump to

Keyboard shortcuts

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