@@ -36,7 +36,6 @@ import (
36
36
"github.com/hashicorp/boundary/internal/pagination"
37
37
"github.com/hashicorp/boundary/internal/perms"
38
38
"github.com/hashicorp/boundary/internal/requests"
39
- "github.com/hashicorp/boundary/internal/server"
40
39
"github.com/hashicorp/boundary/internal/session"
41
40
"github.com/hashicorp/boundary/internal/target"
42
41
"github.com/hashicorp/boundary/internal/types/action"
@@ -56,28 +55,7 @@ import (
56
55
"google.golang.org/protobuf/types/known/wrapperspb"
57
56
)
58
57
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
-
75
58
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
-
81
59
// IdActions contains the set of actions that can be performed on
82
60
// individual resources
83
61
IdActions = action .NewActionSet (
0 commit comments