Documentation ¶
Index ¶
- Constants
- type Event
- type ExtraMetadata
- type Log
- type LogDB
- type MetadataDB
- func (db *MetadataDB) AddExtraMetadata(ctx context.Context, extraRepodata *ExtraMetadata) error
- func (db *MetadataDB) AddPackage(ctx context.Context, pkg *PackageMetadata) error
- func (db *MetadataDB) CountPackages(ctx context.Context) (int, error)
- func (db *MetadataDB) WalkExtraMetadata(ctx context.Context, walkFn WalkExtraMetadataFunc) error
- func (db *MetadataDB) WalkPackageMetadata(ctx context.Context, walkFn WalkPackageMetadataFunc) error
- type PackageMetadata
- type Properties
- type RepositoryDB
- func (db *RepositoryDB) AddPackage(ctx context.Context, pkg *RepositoryPackage) error
- func (db *RepositoryDB) GetPackage(ctx context.Context, id string) (*RepositoryPackage, error)
- func (db *RepositoryDB) HasPackageID(ctx context.Context, id string) (bool, error)
- func (db *RepositoryDB) WalkPackages(ctx context.Context, walkFn WalkPackageFunc) error
- type RepositoryPackage
- type Reposync
- type StatusDB
- func (db *StatusDB) AddEvent(ctx context.Context, event *eventv1.EventPayload) error
- func (db *StatusDB) CountEnvents(ctx context.Context) (int, error)
- func (db *StatusDB) GetProperties(ctx context.Context) (*Properties, error)
- func (db *StatusDB) GetReposync(ctx context.Context) (*Reposync, error)
- func (db *StatusDB) RemoveEvent(ctx context.Context, id string) error
- func (db *StatusDB) UpdateProperties(ctx context.Context, properties *Properties) error
- func (db *StatusDB) UpdateReposync(ctx context.Context, reposync *Reposync) error
- func (db *StatusDB) WalkEvents(ctx context.Context, walkFn WalkEventsFunc) error
- type WalkEventsFunc
- type WalkExtraMetadataFunc
- type WalkLogFunc
- type WalkPackageFunc
- type WalkPackageMetadataFunc
Constants ¶
View Source
const ( LogError string = "ERROR" LogInfo string = "INFO" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraMetadata ¶
type MetadataDB ¶
func OpenMetadataDB ¶
func (*MetadataDB) AddExtraMetadata ¶
func (db *MetadataDB) AddExtraMetadata(ctx context.Context, extraRepodata *ExtraMetadata) error
func (*MetadataDB) AddPackage ¶
func (db *MetadataDB) AddPackage(ctx context.Context, pkg *PackageMetadata) error
func (*MetadataDB) CountPackages ¶
func (db *MetadataDB) CountPackages(ctx context.Context) (int, error)
func (*MetadataDB) WalkExtraMetadata ¶
func (db *MetadataDB) WalkExtraMetadata(ctx context.Context, walkFn WalkExtraMetadataFunc) error
func (*MetadataDB) WalkPackageMetadata ¶
func (db *MetadataDB) WalkPackageMetadata(ctx context.Context, walkFn WalkPackageMetadataFunc) error
type PackageMetadata ¶
type Properties ¶
type RepositoryDB ¶
func OpenRepositoryDB ¶
func (*RepositoryDB) AddPackage ¶
func (db *RepositoryDB) AddPackage(ctx context.Context, pkg *RepositoryPackage) error
func (*RepositoryDB) GetPackage ¶
func (db *RepositoryDB) GetPackage(ctx context.Context, id string) (*RepositoryPackage, error)
func (*RepositoryDB) HasPackageID ¶
func (*RepositoryDB) WalkPackages ¶
func (db *RepositoryDB) WalkPackages(ctx context.Context, walkFn WalkPackageFunc) error
type RepositoryPackage ¶
type RepositoryPackage struct { Tag string `db:"tag"` ID string `db:"id"` Name string `db:"name"` UploadTime int64 `db:"upload_time"` BuildTime int64 `db:"build_time"` Size uint64 `db:"size"` Architecture string `db:"architecture"` SourceRPM string `db:"source_rpm"` Version string `db:"version"` Release string `db:"release"` Groups string `db:"groups"` License string `db:"license"` Vendor string `db:"vendor"` Summary string `db:"summary"` Description string `db:"description"` Verified bool `db:"verified"` GPGSignature string `db:"gpg_signature"` }
type StatusDB ¶
func OpenStatusDB ¶
func (*StatusDB) CountEnvents ¶ added in v0.0.4
func (*StatusDB) GetProperties ¶
func (db *StatusDB) GetProperties(ctx context.Context) (*Properties, error)
func (*StatusDB) GetReposync ¶
func (*StatusDB) RemoveEvent ¶
func (*StatusDB) UpdateProperties ¶
func (db *StatusDB) UpdateProperties(ctx context.Context, properties *Properties) error
func (*StatusDB) UpdateReposync ¶
func (*StatusDB) WalkEvents ¶
func (db *StatusDB) WalkEvents(ctx context.Context, walkFn WalkEventsFunc) error
type WalkEventsFunc ¶
type WalkEventsFunc func(*eventv1.EventPayload) error
type WalkExtraMetadataFunc ¶
type WalkExtraMetadataFunc func(*ExtraMetadata) error
type WalkLogFunc ¶
type WalkPackageFunc ¶
type WalkPackageFunc func(*RepositoryPackage) error
type WalkPackageMetadataFunc ¶
type WalkPackageMetadataFunc func(*PackageMetadata) error
Click to show internal directories.
Click to hide internal directories.