@@ -42,8 +42,8 @@ type ProcessStore interface {
4242 DataStore
4343
4444 // GetProcess retrieves process information by entity ID
45- // Returns nil, false if the process is not found
46- GetProcess (entityId uint32 ) (* ProcessInfo , bool )
45+ // Returns ErrNotFound if the process is not found
46+ GetProcess (entityId uint32 ) (* ProcessInfo , error )
4747
4848 // GetChildProcesses returns all child processes of the given process
4949 // Returns empty slice if no children found
@@ -61,12 +61,12 @@ type ContainerStore interface {
6161 DataStore
6262
6363 // GetContainer retrieves container information by container ID
64- // Returns nil, false if the container is not found
65- GetContainer (id string ) (* ContainerInfo , bool )
64+ // Returns ErrNotFound if the container is not found
65+ GetContainer (id string ) (* ContainerInfo , error )
6666
6767 // GetContainerByName retrieves container information by container name
68- // Returns nil, false if no container with that name is found
69- GetContainerByName (name string ) (* ContainerInfo , bool )
68+ // Returns ErrNotFound if no container with that name is found
69+ GetContainerByName (name string ) (* ContainerInfo , error )
7070}
7171
7272// KernelSymbolStore provides access to kernel symbol information
@@ -95,8 +95,8 @@ type DNSStore interface {
9595 DataStore
9696
9797 // GetDNSResponse retrieves cached DNS response for a query
98- // Returns nil, false if no cached response is found
99- GetDNSResponse (query string ) (* DNSResponse , bool )
98+ // Returns ErrNotFound if no cached response is found
99+ GetDNSResponse (query string ) (* DNSResponse , error )
100100}
101101
102102// SystemStore provides access to immutable system information
@@ -113,12 +113,12 @@ type SyscallStore interface {
113113 DataStore
114114
115115 // GetSyscallName returns the syscall name for a given ID
116- // Returns empty string and false if the syscall ID is not found
116+ // Returns ErrNotFound if the syscall ID is not found
117117 // Note: Syscall IDs are architecture-specific (x86 vs ARM)
118- GetSyscallName (id int32 ) (string , bool )
118+ GetSyscallName (id int32 ) (string , error )
119119
120120 // GetSyscallID returns the syscall ID for a given name
121- // Returns 0 and false if the syscall name is not found
121+ // Returns ErrNotFound if the syscall name is not found
122122 // Note: Syscall IDs are architecture-specific (x86 vs ARM)
123- GetSyscallID (name string ) (int32 , bool )
123+ GetSyscallID (name string ) (int32 , error )
124124}
0 commit comments