type Finder struct {
// Client is the API client to use for any requests. Client *api.Client// contains filtered or unexported fields
}
Finder finds intentions by a src/dst exact match. There is currently
no direct API to do this so this struct downloads all intentions and
caches them once, and searches in-memory for this. For now this works since
even with a very large number of intentions, the size of the data gzipped
over HTTP will be relatively small.
The Finder will only download the intentions one time. This struct is
not expected to be used over a long period of time. Though it may be
reused multile times, the intentions list is only downloaded once.