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