Integration is the basic interface for all integrations
| 30 | |
| 31 | // Integration is the basic interface for all integrations |
| 32 | type Integration interface { |
| 33 | fmt.Stringer |
| 34 | |
| 35 | Describe() *IntegrationInfo |
| 36 | // Register Validates, marshalls and returns the configuration that needs to be persisted |
| 37 | Register(ctx context.Context, req *RegistrationRequest) (*RegistrationResponse, error) |
| 38 | // Attach Validates that the attachment configuration is valid in the context of the provided registration |
| 39 | Attach(ctx context.Context, req *AttachmentRequest) (*AttachmentResponse, error) |
| 40 | } |
| 41 | |
| 42 | type InputSchema struct { |
| 43 | // Structs defining the registration and attachment schemas |
no outgoing calls
no test coverage detected