Skip to content

Commit a715868

Browse files
committed
chore: update
1 parent d4b5f80 commit a715868

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

api/client.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,4 @@ type Client interface {
110110
UpdateVCSConnector(ctx context.Context, patch *v1pb.VCSConnector, updateMasks []string) (*v1pb.VCSConnector, error)
111111
// DeleteVCSConnector deletes the vcs provider.
112112
DeleteVCSConnector(ctx context.Context, name string) error
113-
114-
// User
115-
// ListUser list all users.
116-
ListUser(ctx context.Context, showDeleted bool) (*v1pb.ListUsersResponse, error)
117-
// CreateUser creates the user.
118-
CreateUser(ctx context.Context, user *v1pb.User) (*v1pb.User, error)
119-
// GetUser gets the user by name.
120-
GetUser(ctx context.Context, userName string) (*v1pb.User, error)
121-
// UpdateUser updates the user.
122-
UpdateUser(ctx context.Context, patch *v1pb.User, updateMasks []string) (*v1pb.User, error)
123-
// DeleteUser deletes the user by name.
124-
DeleteUser(ctx context.Context, userName string) error
125-
// UndeleteUser undeletes the user by name.
126-
UndeleteUser(ctx context.Context, userName string) (*v1pb.User, error)
127113
}

provider/internal/mock_client.go

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -558,33 +558,3 @@ func (*mockClient) UpdateVCSConnector(_ context.Context, _ *v1pb.VCSConnector, _
558558
func (*mockClient) DeleteVCSConnector(_ context.Context, _ string) error {
559559
return nil
560560
}
561-
562-
// ListUser list all users.
563-
func (*mockClient) ListUser(_ context.Context, _ bool) (*v1pb.ListUsersResponse, error) {
564-
return nil, nil
565-
}
566-
567-
// GetUser gets the user by name.
568-
func (*mockClient) GetUser(_ context.Context, _ string) (*v1pb.User, error) {
569-
return nil, nil
570-
}
571-
572-
// CreateUser creates the user.
573-
func (*mockClient) CreateUser(_ context.Context, _ *v1pb.User) (*v1pb.User, error) {
574-
return nil, nil
575-
}
576-
577-
// UpdateUser updates the user.
578-
func (*mockClient) UpdateUser(_ context.Context, _ *v1pb.User, _ []string) (*v1pb.User, error) {
579-
return nil, nil
580-
}
581-
582-
// DeleteUser deletes the user by name.
583-
func (*mockClient) DeleteUser(_ context.Context, _ string) error {
584-
return nil
585-
}
586-
587-
// UndeleteUser undeletes the user by name.
588-
func (*mockClient) UndeleteUser(_ context.Context, _ string) (*v1pb.User, error) {
589-
return nil, nil
590-
}

0 commit comments

Comments
 (0)