Exemplo n.º 1
0
 def images(self):
     _images = self.resolver.QueryPredicateObject(
         self.urn, lexicon.AFF4_TYPE, lexicon.standard11.FileImage)
     for image in _images:
         pathName = next(
             self.resolver.QuerySubjectPredicate(
                 self.urn, image, lexicon.standard11.pathName))
         yield aff4.LogicalImage(self, self.resolver, self.urn, image,
                                 pathName)
Exemplo n.º 2
0
 def open(self, urn):
     pathName = next(self.resolver.QuerySubjectPredicate(self.urn, urn, self.lexicon.pathName))
     return aff4.LogicalImage(self, self.resolver, self.urn, urn, pathName)