Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance interface { resource.Resource // DenyCheck indicates that the policy backend should deny all incoming check requests when deny is // set to true. DenyCheck(t testing.TB, deny bool) // ExpectReport checks that the backend has received the given report requests. The requests are consumed // after the call completes. ExpectReport(t testing.TB, expected ...proto.Message) // ExpectReportJSON checks that the backend has received the given report request. The requests are // consumed after the call completes. ExpectReportJSON(t testing.TB, expected ...string) // GetReports reeturns the currently accumulated set of reports. GetReports(t testing.TB) []proto.Message // CreateConfigSnippet for the Mixer adapter to talk to this policy backend. // The supplied name will be the name of the handler. CreateConfigSnippet(name string, namespace string) string }
Instance represents a deployed fake policy backend for Mixer.
Click to show internal directories.
Click to hide internal directories.