File: docker_linux.h

package info (click to toggle)
falcosecurity-libs 0.1.1dev%2Bgit20220316.e5c53d64-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,732 kB
  • sloc: cpp: 55,770; ansic: 37,330; makefile: 74; sh: 13
file content (28 lines) | stat: -rw-r--r-- 623 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "container_engine/container_engine_base.h"
#include "container_engine/docker/base.h"

namespace libsinsp {
namespace container_engine {

class docker_linux : public docker_base {
public:
	docker_linux(container_cache_interface& cache) : docker_base(cache) {}

	static void set_docker_sock(std::string docker_sock)
	{
		m_docker_sock = std::move(docker_sock);
	}

	// implement container_engine_base
	bool resolve(sinsp_threadinfo *tinfo, bool query_os_for_missing_info) override;

	void update_with_size(const std::string& container_id) override;

private:
	static std::string m_docker_sock;
};

}
}