This interface defines virtual methods for each of the user-facing overload sets in ContainerAnalysisClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type ContainerAnalysisClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eContainerAnalysisConnection\u003c/code\u003e interface, which is part of the \u003ccode\u003econtaineranalysis\u003c/code\u003e library, and is designed for use with \u003ccode\u003eContainerAnalysisClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides virtual methods corresponding to the user-facing overload sets in \u003ccode\u003eContainerAnalysisClient\u003c/code\u003e, allowing for the injection of custom behavior during testing.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and the page lists numerous previous versions of the \u003ccode\u003eContainerAnalysisConnection\u003c/code\u003e, including \u003ccode\u003e2.26.0\u003c/code\u003e which this page is centered around.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContainerAnalysisConnection\u003c/code\u003e also contains functions \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eSetIamPolicy\u003c/code\u003e, \u003ccode\u003eGetIamPolicy\u003c/code\u003e, \u003ccode\u003eTestIamPermissions\u003c/code\u003e and \u003ccode\u003eGetVulnerabilityOccurrencesSummary\u003c/code\u003e that can be called to return information.\u003c/p\u003e\n"],["\u003cp\u003eTo create a concrete version of the interface, \u003ccode\u003eMakeContainerAnalysisConnection()\u003c/code\u003e can be used, or alternatively \u003ccode\u003econtaineranalysis_v1_mocks::MockContainerAnalysisConnection\u003c/code\u003e for mocking purposes.\u003c/p\u003e\n"]]],[],null,[]]