Exemplo n.º 1
0
    def get(self):
        """Returns all containers for the /containers endpoint."""
        self.reqparse.add_argument('audit', type=types.boolean, default=False,)
        args = self.reqparse.parse_args()

        if args['audit']:
            audit_containers()

        containers = [r.hgetall(container) for container in r.keys('containers:*')]
        return [marshal(c, container_fields) for c in containers]
Exemplo n.º 2
0
def startup_audit():
    audit_containers()