Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(name string, constructor ProviderConstructor) error
RegisterProvider adds an incident provider constructor.
Types ¶
type Provider ¶
type Provider interface {
Query(ctx context.Context, query schema.IncidentQuery) ([]schema.Incident, error)
Get(ctx context.Context, id string) (schema.Incident, error)
Create(ctx context.Context, in schema.CreateIncidentInput) (schema.Incident, error)
Update(ctx context.Context, id string, in schema.UpdateIncidentInput) (schema.Incident, error)
GetTimeline(ctx context.Context, id string) ([]schema.TimelineEntry, error)
AppendTimeline(ctx context.Context, id string, entry schema.TimelineAppendInput) error
}
Provider defines the capability surface an incident adapter must satisfy.
type ProviderConstructor ¶
ProviderConstructor builds a Provider instance from decrypted config.
func LookupProvider ¶
func LookupProvider(name string) (ProviderConstructor, bool)
LookupProvider returns a named provider constructor if registered.
Click to show internal directories.
Click to hide internal directories.