MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / AuthZRes

Method AuthZRes

authorization/api_test.go:35–41  ·  view source on GitHub ↗
(r Request)

Source from the content-addressed store, hash-verified

33}
34
35func (p *TestPlugin) AuthZRes(r Request) Response {
36 return Response{
37 Allow: false,
38 Msg: "You are not authorized",
39 Err: "",
40 }
41}
42
43func TestActivate(t *testing.T) {
44 response, err := http.Get("http://localhost:32456/Plugin.Activate")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected