MCPcopy
hub / github.com/spacecloud-io/space-cloud / IntegrationAuthResponse

Interface IntegrationAuthResponse

gateway/config/integration.go:61–77  ·  view source on GitHub ↗

IntegrationAuthResponse is sent back as a response to auth checks

Source from the content-addressed store, hash-verified

59
60// IntegrationAuthResponse is sent back as a response to auth checks
61type IntegrationAuthResponse interface {
62 // CheckResponse signifies whether the response of the integration module needs to be checked or now.
63 // If the value `true` is returned, this means the integration moduke intends to control the response of
64 // the auth request.
65 CheckResponse() bool
66
67 // The error to be sent back. This error is generated by the integration module. An error can be present when
68 // an integration is trying to configure a resource which it does not have access to.
69 Error() error
70
71 // Status returns the status code returned by the integration
72 Status() int
73
74 // Result returns the value returned by the the hook. It will always be an []interface{} or map[string]interface{}.
75 // The receiver must decode it into the appropriate struct if necessary.
76 Result() interface{}
77}
78
79// IntegrationHookResponse describes the response format of integration hooks
80type IntegrationHookResponse struct {

Callers 32

IsCreateOpAuthorisedMethod · 0.65
IsReadOpAuthorisedMethod · 0.65
IsUpdateOpAuthorisedMethod · 0.65
IsDeleteOpAuthorisedMethod · 0.65
IsFuncCallAuthorisedMethod · 0.65
StartMethod · 0.65
DockerStopFunction · 0.65
DockerStartFunction · 0.65
ApplySpecFunction · 0.65

Implementers 3

authResponsegateway/managers/integration/types.go
mockHookResponsegateway/managers/syncman/types_test.go
mockIntegrationResponsegateway/managers/admin/types_test.go

Calls

no outgoing calls

Tested by

no test coverage detected