mirror of
https://github.com/gravitational/teleport.git
synced 2026-08-31 01:50:50 +08:00
cdc35489b1
* Batch access list review reminder (slack) * Address CRs * Address CR 2 * Fix lint
34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
/*
|
|
* Teleport
|
|
* Copyright (C) 2023 Gravitational, Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package accesslist
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gravitational/teleport/api/types/accesslist"
|
|
"github.com/gravitational/teleport/integrations/access/common"
|
|
)
|
|
|
|
type MessagingBot interface {
|
|
common.MessagingBot
|
|
|
|
// SendReviewReminders will send a review reminder that an access list needs to be reviewed.
|
|
SendReviewReminders(ctx context.Context, recipient common.Recipient, accessLists []*accesslist.AccessList) error
|
|
}
|