Skip to content

Commit 28b9840

Browse files
authored
chore: remove dead target service code (#5639)
1 parent d965b8c commit 28b9840

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

internal/daemon/controller/handlers/targets/target_service.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import (
3636
"github.com/hashicorp/boundary/internal/pagination"
3737
"github.com/hashicorp/boundary/internal/perms"
3838
"github.com/hashicorp/boundary/internal/requests"
39-
"github.com/hashicorp/boundary/internal/server"
4039
"github.com/hashicorp/boundary/internal/session"
4140
"github.com/hashicorp/boundary/internal/target"
4241
"github.com/hashicorp/boundary/internal/types/action"
@@ -56,28 +55,7 @@ import (
5655
"google.golang.org/protobuf/types/known/wrapperspb"
5756
)
5857

59-
const (
60-
credentialDomain = "credential"
61-
hostDomain = "host"
62-
)
63-
64-
// extraWorkerFilterFunc takes in a set of workers and returns another set,
65-
// after any filtering it wishes to perform. When calling one of these
66-
// functions, the current set should be passed in and the returned set should be
67-
// used if there is no error; it is up to the filter writer to ensure that what
68-
// is returned, if no filtering is desired, is the input set.
69-
//
70-
// This is generally used to take in a set selected already from the database
71-
// and possible filtered via target worker filters and provide additional
72-
// filtering capabilities on those remaining workers.
73-
type extraWorkerFilterFunc func(ctx context.Context, workers []*server.Worker, host, port string) ([]*server.Worker, error)
74-
7558
var (
76-
// ExtraWorkerFilters contains any custom worker filters that should be
77-
// layered in at session authorization time. These will be executed in-order
78-
// with the results from one fed into the next.
79-
ExtraWorkerFilters []extraWorkerFilterFunc
80-
8159
// IdActions contains the set of actions that can be performed on
8260
// individual resources
8361
IdActions = action.NewActionSet(

0 commit comments

Comments
 (0)