Skip to content

Commit 63000c8

Browse files
authored
feat(teams) refactor teams to use new v2 client (#266)
* feat(teams): use new v2 client * feat(teams): add debug logs * feat(teams): remove test logs * feat(teams): fix nil error * feat(teams): always send metrics flags * feat(teams): dont send metrics which are not used * feat(teams): make one client for all platform * feat(teams): remove teams from old client * feat(teams): remove teams from old client * feat(teams): remove deleted team functions * feat(teams): fix lint errors * feat(teams): default beacon metrics in monitor to false * feat(teams): remove debug line * feat(teams): handle nil entrypoint in monitor resource
1 parent 4deea58 commit 63000c8

File tree

10 files changed

+520
-308
lines changed

10 files changed

+520
-308
lines changed

sysdig/internal/client/monitor/client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ type SysdigMonitorClient interface {
4141

4242
GetLabelDescriptor(ctx context.Context, label string) (LabelDescriptorV3, error)
4343

44-
CreateTeam(context.Context, Team) (Team, error)
45-
GetTeamById(context.Context, int) (Team, error)
46-
UpdateTeam(context.Context, Team) (Team, error)
47-
DeleteTeam(context.Context, int) error
48-
4944
CreateNotificationChannel(context.Context, NotificationChannel) (NotificationChannel, error)
5045
GetNotificationChannelById(context.Context, int) (NotificationChannel, error)
5146
GetNotificationChannelByName(context.Context, string) (NotificationChannel, error)

sysdig/internal/client/monitor/teams.go

Lines changed: 0 additions & 134 deletions
This file was deleted.

sysdig/internal/client/secure/client.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ type SysdigSecureClient interface {
2828
DeleteNotificationChannel(context.Context, int) error
2929
UpdateNotificationChannel(context.Context, NotificationChannel) (NotificationChannel, error)
3030

31-
CreateTeam(context.Context, Team) (Team, error)
32-
GetTeamById(context.Context, int) (Team, error)
33-
DeleteTeam(context.Context, int) error
34-
UpdateTeam(context.Context, Team) (Team, error)
35-
3631
CreateList(context.Context, List) (List, error)
3732
GetListById(context.Context, int) (List, error)
3833
DeleteList(context.Context, int) error

sysdig/internal/client/secure/teams.go

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)