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) RemoveExtraMetadata(ctx context.Context, dataType string) (bool, error)
- func (db *MetadataDB) RemovePackage(ctx context.Context, id string) (bool, 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) CountPackages(ctx context.Context) (int, error)
- func (db *RepositoryDB) GetPackage(ctx context.Context, id string) (*RepositoryPackage, error)
- func (db *RepositoryDB) GetPackageByTag(ctx context.Context, tag string) (*RepositoryPackage, error)
- func (db *RepositoryDB) HasPackageID(ctx context.Context, id string) (bool, error)
- func (db *RepositoryDB) RemovePackage(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) CountEvents(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, 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) 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) RemoveExtraMetadata ¶ added in v0.0.9
func (*MetadataDB) RemovePackage ¶ added in v0.0.9
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) CountPackages ¶ added in v0.0.18
func (db *RepositoryDB) CountPackages(ctx context.Context) (int, error)
func (*RepositoryDB) GetPackage ¶
func (db *RepositoryDB) GetPackage(ctx context.Context, id string) (*RepositoryPackage, error)
func (*RepositoryDB) GetPackageByTag ¶ added in v0.0.15
func (db *RepositoryDB) GetPackageByTag(ctx context.Context, tag string) (*RepositoryPackage, error)
func (*RepositoryDB) HasPackageID ¶
func (*RepositoryDB) RemovePackage ¶ added in v0.0.9
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"` }
func (RepositoryPackage) RPMName ¶ added in v0.0.18
func (pkg RepositoryPackage) RPMName() string
type StatusDB ¶
func OpenStatusDB ¶
func (*StatusDB) CountEvents ¶ added in v0.0.18
func (*StatusDB) GetProperties ¶
func (db *StatusDB) GetProperties(ctx context.Context) (*Properties, error)
func (*StatusDB) GetReposync ¶
func (*StatusDB) RemoveEvent ¶
func (*StatusDB) SetCreatedProperty ¶ added in v0.0.18
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.