github.com/quay/claircore@v1.5.28/libvuln/driver/remotematcher.go (about)

     1  package driver
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/quay/claircore"
     7  )
     8  
     9  // RemoteMatcher is an additional interface that a Matcher can implement.
    10  //
    11  // When called the interface can invoke the remote matcher using an HTTP API to
    12  // fetch new vulnerabilities associated with the given IndexRecords.
    13  //
    14  // The information retrieved from this interface won't be persisted into the
    15  // claircore database.
    16  type RemoteMatcher interface {
    17  	QueryRemoteMatcher(ctx context.Context, records []*claircore.IndexRecord) (map[string][]*claircore.Vulnerability, error)
    18  }