Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publication ¶
type Publication struct {
RootID artifactstore.RootID
ExpectedRootRevision uint64
ExpectedSourceRevisions map[artifactstore.SourceID]uint64
SourceGenerations map[artifactstore.SourceID]string
Occurrences []catalog.Occurrence
RecordCreates []record.Record
RecordUpdates []record.SourceStateUpdate
Diagnostics []artifactstore.Diagnostic
PublishedAt time.Time
}
func (Publication) Validate ¶
func (p Publication) Validate() error
type RecordReader ¶
type Result ¶
type Result struct {
Catalog catalog.Snapshot
CreatedRecords []artifactstore.RecordID
UpdatedRecords []artifactstore.RecordID
Diagnostics []artifactstore.Diagnostic
Candidates int
}
type RootReader ¶
type RootReader interface {
Get(
ctx context.Context,
id artifactstore.RootID,
includeDeleted bool,
) (root.Root, error)
ListAttachments(
ctx context.Context,
rootID artifactstore.RootID,
) ([]root.Attachment, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( roots RootReader, catalogs catalog.Reader, sources source.Runtime, records RecordReader, discoveryEngine *discovery.Engine, definitions definition.Repository, reconciler *record.Reconciler, publisher Publisher, clock artifactstore.Clock, ) (*Service, error)
Click to show internal directories.
Click to hide internal directories.