Documentation
¶
Index ¶
- Constants
- func Initialize(ctx context.Context, uri string) error
- type Change
- type DeleteChangesOptions
- type GetChangesOptions
- type ListImageOptions
- type ListRawImagesOptions
- type Order
- type Sort
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteChanges(ctx context.Context, options *DeleteChangesOptions) error
- func (s *Store) DeleteNonPresent(ctx context.Context, references []string) (int64, error)
- func (s *Store) DeleteWorkflowRuns(ctx context.Context, olderThan time.Time) (int64, error)
- func (s *Store) GetChanges(ctx context.Context, options *GetChangesOptions) ([]Change, error)
- func (s *Store) GetImage(ctx context.Context, reference string) (*models.Image, error)
- func (s *Store) GetImageDescription(ctx context.Context, reference string) (*models.ImageDescription, error)
- func (s *Store) GetImageGraph(ctx context.Context, reference string) (*models.Graph, error)
- func (s *Store) GetImageReleaseNotes(ctx context.Context, reference string) (*models.ImageReleaseNotes, error)
- func (s *Store) GetImageScorecard(ctx context.Context, reference string) (*models.ImageScorecard, error)
- func (s *Store) GetImageVulnerabilities(ctx context.Context, reference string) ([]models.ImageVulnerability, error)
- func (s *Store) GetImagesLinks(ctx context.Context, reference string) ([]models.ImageLink, error)
- func (s *Store) GetImagesTags(ctx context.Context, reference string) ([]string, error)
- func (s *Store) GetLatestWorkflowRun(ctx context.Context, reference string) (*models.WorkflowRun, error)
- func (s *Store) GetRawImage(ctx context.Context, reference string) (*models.RawImage, error)
- func (s *Store) GetTags(ctx context.Context) ([]string, error)
- func (s *Store) InsertImage(ctx context.Context, image *models.Image) error
- func (s *Store) InsertImageDescription(ctx context.Context, reference string, description *models.ImageDescription) error
- func (s *Store) InsertImageGraph(ctx context.Context, reference string, graph *models.Graph) error
- func (s *Store) InsertImageReleaseNotes(ctx context.Context, reference string, releaseNotes *models.ImageReleaseNotes) error
- func (s *Store) InsertImageScorecard(ctx context.Context, reference string, scorecard *models.ImageScorecard) error
- func (s *Store) InsertRawImage(ctx context.Context, image *models.RawImage) (bool, error)
- func (s *Store) InsertWorkflowRun(ctx context.Context, reference string, workflowRun models.WorkflowRun) error
- func (s *Store) ListImages(ctx context.Context, options *ListImageOptions) (*models.ImagePage, error)
- func (s *Store) ListRawImages(ctx context.Context, options *ListRawImagesOptions) ([]models.RawImage, error)
- func (s *Store) Summary(ctx context.Context) (*models.ImagePageSummary, error)
Constants ¶
View Source
const Revision = 2
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeleteChangesOptions ¶ added in v0.17.0
type GetChangesOptions ¶ added in v0.17.0
type ListImageOptions ¶
type ListImageOptions struct { // Tags defaults to nil (don't filter by tags). Tags []string // Order defaults to OrderAscending. Order Order // Page defaults to 0. Page int // Limit defaults to 30. Limit int // Sort defaults to SortBump. Sort Sort // Query is an Sqlite full text search query. Query string }
type ListRawImagesOptions ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteChanges ¶ added in v0.17.0
func (s *Store) DeleteChanges(ctx context.Context, options *DeleteChangesOptions) error
func (*Store) DeleteNonPresent ¶
DeleteNonPresent deletes all images that are not referenced. Returns the number of affected rows.
func (*Store) DeleteWorkflowRuns ¶ added in v0.17.0
func (*Store) GetChanges ¶ added in v0.17.0
func (*Store) GetImageDescription ¶
func (*Store) GetImageGraph ¶
func (*Store) GetImageReleaseNotes ¶
func (*Store) GetImageScorecard ¶ added in v0.18.0
func (*Store) GetImageVulnerabilities ¶
func (*Store) GetImagesLinks ¶
func (*Store) GetImagesTags ¶
func (*Store) GetLatestWorkflowRun ¶ added in v0.17.0
func (s *Store) GetLatestWorkflowRun(ctx context.Context, reference string) (*models.WorkflowRun, error)
NOTE: For now there's no use case of having multiple runs available, so let's start off by just exposing the latest run.
func (*Store) GetRawImage ¶
func (*Store) InsertImage ¶
func (*Store) InsertImageDescription ¶
func (*Store) InsertImageGraph ¶
func (*Store) InsertImageReleaseNotes ¶
func (*Store) InsertImageScorecard ¶ added in v0.18.0
func (*Store) InsertRawImage ¶
func (*Store) InsertWorkflowRun ¶ added in v0.17.0
func (*Store) ListImages ¶
func (*Store) ListRawImages ¶
Click to show internal directories.
Click to hide internal directories.