MCPcopy Create free account
hub / github.com/VirusTotal/vt-cli / RetrieveObjects

Method RetrieveObjects

utils/client.go:48–50  ·  view source on GitHub ↗

RetrieveObjects retrieves objects from the specified endpoint. The endpoint must contain a %s placeholder that will be replaced with items from the args slice. The objects are put into the outCh as they are retrieved.

(endpoint string, args []string, outCh chan *vt.Object, errCh chan error)

Source from the content-addressed store, hash-verified

46// must contain a %s placeholder that will be replaced with items from the args
47// slice. The objects are put into the outCh as they are retrieved.
48func (c *APIClient) RetrieveObjects(endpoint string, args []string, outCh chan *vt.Object, errCh chan error) error {
49 return c.RetrieveObjectsWithFallback([]string{endpoint}, args, outCh, errCh)
50}
51
52// RetrieveObjectsWithFallback retrieves objects from the specified endpoints. It
53// tries the endpoints in the order they are provided until one of them returns

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected