Documentation ¶
Index ¶
- Constants
- type Event
- type Log
- type LogDB
- type Properties
- type RepositoryDB
- func (db *RepositoryDB) AddFile(ctx context.Context, file *RepositoryFile) error
- func (db *RepositoryDB) CountFiles(ctx context.Context) (int, error)
- func (db *RepositoryDB) DeleteFileByName(ctx context.Context, name string) error
- func (db *RepositoryDB) DeleteFilesByMode(ctx context.Context, mode uint32) error
- func (db *RepositoryDB) GetFileByName(ctx context.Context, name string) (*RepositoryFile, error)
- func (db *RepositoryDB) GetFileByReference(ctx context.Context, reference string) (*RepositoryFile, error)
- func (db *RepositoryDB) GetFileByTag(ctx context.Context, tag string) (*RepositoryFile, error)
- func (db *RepositoryDB) RemoveFile(ctx context.Context, tag string) (bool, error)
- func (db *RepositoryDB) WalkFiles(ctx context.Context, walkFn WalkFileFunc) error
- func (db *RepositoryDB) WalkFilesByConfigID(ctx context.Context, configID uint64, walkFn WalkFileFunc) error
- func (db *RepositoryDB) WalkFilesByDistinctParent(ctx context.Context, walkFn WalkStringFunc) error
- func (db *RepositoryDB) WalkFilesByParent(ctx context.Context, parent string, walkFn WalkFileFunc) error
- func (db *RepositoryDB) WalkSymlinks(ctx context.Context, walkFn WalkFileFunc) error
- type RepositoryFile
- type StatusDB
- func (db *StatusDB) AddEvent(ctx context.Context, event *eventv1.EventPayload) error
- func (db *StatusDB) CountEvents(ctx context.Context) (int, error)
- func (db *StatusDB) GetProperties(ctx context.Context) (*Properties, error)
- func (db *StatusDB) GetSync(ctx context.Context) (*Sync, error)
- func (db *StatusDB) RemoveEvent(ctx context.Context, event *eventv1.EventPayload) error
- func (db *StatusDB) SetCreatedProperty(ctx context.Context) error
- func (db *StatusDB) UpdateProperties(ctx context.Context, properties *Properties) error
- func (db *StatusDB) UpdateSync(ctx context.Context, sync *Sync) error
- func (db *StatusDB) WalkEvents(ctx context.Context, walkFn WalkEventsFunc) error
- type Sync
- type WalkEventsFunc
- type WalkFileFunc
- type WalkLogFunc
- type WalkStringFunc
Constants ¶
View Source
const ( LogError string = "ERROR" LogInfo string = "INFO" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Properties ¶
type RepositoryDB ¶
func OpenRepositoryDB ¶
func (*RepositoryDB) AddFile ¶
func (db *RepositoryDB) AddFile(ctx context.Context, file *RepositoryFile) error
func (*RepositoryDB) CountFiles ¶
func (db *RepositoryDB) CountFiles(ctx context.Context) (int, error)
func (*RepositoryDB) DeleteFileByName ¶ added in v0.0.32
func (db *RepositoryDB) DeleteFileByName(ctx context.Context, name string) error
func (*RepositoryDB) DeleteFilesByMode ¶ added in v0.0.35
func (db *RepositoryDB) DeleteFilesByMode(ctx context.Context, mode uint32) error
func (*RepositoryDB) GetFileByName ¶
func (db *RepositoryDB) GetFileByName(ctx context.Context, name string) (*RepositoryFile, error)
func (*RepositoryDB) GetFileByReference ¶ added in v0.0.32
func (db *RepositoryDB) GetFileByReference(ctx context.Context, reference string) (*RepositoryFile, error)
func (*RepositoryDB) GetFileByTag ¶
func (db *RepositoryDB) GetFileByTag(ctx context.Context, tag string) (*RepositoryFile, error)
func (*RepositoryDB) RemoveFile ¶
func (*RepositoryDB) WalkFiles ¶
func (db *RepositoryDB) WalkFiles(ctx context.Context, walkFn WalkFileFunc) error
func (*RepositoryDB) WalkFilesByConfigID ¶ added in v0.0.32
func (db *RepositoryDB) WalkFilesByConfigID(ctx context.Context, configID uint64, walkFn WalkFileFunc) error
func (*RepositoryDB) WalkFilesByDistinctParent ¶ added in v0.0.32
func (db *RepositoryDB) WalkFilesByDistinctParent(ctx context.Context, walkFn WalkStringFunc) error
func (*RepositoryDB) WalkFilesByParent ¶ added in v0.0.32
func (db *RepositoryDB) WalkFilesByParent(ctx context.Context, parent string, walkFn WalkFileFunc) error
func (*RepositoryDB) WalkSymlinks ¶
func (db *RepositoryDB) WalkSymlinks(ctx context.Context, walkFn WalkFileFunc) error
type RepositoryFile ¶
type RepositoryFile struct { Tag string `db:"tag"` Name string `db:"name"` Reference string `db:"reference"` Parent string `db:"parent"` Link string `db:"link"` ModifiedTime int64 `db:"modified_time"` Mode uint32 `db:"mode"` Size uint64 `db:"size"` ConfigID uint64 `db:"config_id"` LinkReference string `db:"link_reference"` }
type StatusDB ¶
func OpenStatusDB ¶
func (*StatusDB) GetProperties ¶
func (db *StatusDB) GetProperties(ctx context.Context) (*Properties, error)
func (*StatusDB) RemoveEvent ¶
func (*StatusDB) SetCreatedProperty ¶
func (*StatusDB) UpdateProperties ¶
func (db *StatusDB) UpdateProperties(ctx context.Context, properties *Properties) error
func (*StatusDB) WalkEvents ¶
func (db *StatusDB) WalkEvents(ctx context.Context, walkFn WalkEventsFunc) error
type WalkEventsFunc ¶
type WalkEventsFunc func(*eventv1.EventPayload) error
type WalkFileFunc ¶
type WalkFileFunc func(*RepositoryFile) error
type WalkLogFunc ¶
type WalkStringFunc ¶ added in v0.0.32
Click to show internal directories.
Click to hide internal directories.