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

Struct Response

authorization/api.go:86–95  ·  view source on GitHub ↗

Response represents authZ plugin response

Source from the content-addressed store, hash-verified

84
85// Response represents authZ plugin response
86type Response struct {
87 // Allow indicating whether the user is allowed or not
88 Allow bool `json:"Allow"`
89
90 // Msg stores the authorization message
91 Msg string `json:"Msg,omitempty"`
92
93 // Err stores a message in case there's an error
94 Err string `json:"Err,omitempty"`
95}
96
97// Plugin represent the interface a plugin must fulfill.
98type Plugin interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected