Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mgr is a global variable for the default notification policies Mgr = NewManager() )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Create new policy Create(ctx context.Context, policy *model.Policy) (int64, error) // List the policies, returns the policy list and error List(ctx context.Context, query *q.Query) ([]*model.Policy, error) // Count the policies, returns the policy count and error Count(ctx context.Context, query *q.Query) (int64, error) // Get policy with specified ID Get(ctx context.Context, id int64) (*model.Policy, error) // Update the specified policy Update(ctx context.Context, policy *model.Policy) error // Delete the specified policy Delete(ctx context.Context, policyID int64) error // GetRelatedPolices get event type related policies in project GetRelatedPolices(ctx context.Context, projectID int64, eventType string) ([]*model.Policy, error) }
Manager manages the notification policies
Click to show internal directories.
Click to hide internal directories.