MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / GetClient

Function GetClient

pkg/util/loldrivers/client.go:99–104  ·  view source on GitHub ↗

GetClient constructs a singleton instance of the loldrivers client. If the client wasn't initialized, this function creates a new client with default sane settings.

()

Source from the content-addressed store, hash-verified

97// If the client wasn't initialized, this function creates a new client
98// with default sane settings.
99func GetClient() *Client {
100 if c == nil {
101 c = initClient()
102 }
103 return c
104}
105
106func initClient(options ...Option) *Client {
107 if c == nil {

Callers 4

isLOLDriverFunction · 0.92
TestDownloadFunction · 0.85
TestMatchHashFunction · 0.85
TestRefreshFunction · 0.85

Calls 1

initClientFunction · 0.85

Tested by 3

TestDownloadFunction · 0.68
TestMatchHashFunction · 0.68
TestRefreshFunction · 0.68