feat(targets): Addition of egress and ingress worker filters (#2654)
* feat(targets): Addition of egress and ingress worker filters
This commit is contained in:
1 parent
aca22cacb9
commit
834a2a88f7
34 files changed
+1422
-430
No files matched your search
@@ -183,12 +183,36 @@ func DefaultDescription() Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithEgressWorkerFilter(inEgressWorkerFilter string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["egress_worker_filter"] = inEgressWorkerFilter
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultEgressWorkerFilter() Option {
|
||||
return func(o *options) {
|
||||
o.postMap["egress_worker_filter"] = nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithHostId(inHostId string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["host_id"] = inHostId
|
||||
}
|
||||
}
|
||||
|
||||
func WithIngressWorkerFilter(inIngressWorkerFilter string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["ingress_worker_filter"] = inIngressWorkerFilter
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultIngressWorkerFilter() Option {
|
||||
return func(o *options) {
|
||||
o.postMap["ingress_worker_filter"] = nil
|
||||
}
|
||||
}
|
||||
|
||||
func WithInjectedApplicationCredentialSourceIds(inInjectedApplicationCredentialSourceIds []string) Option {
|
||||
return func(o *options) {
|
||||
o.postMap["injected_application_credential_source_ids"] = inInjectedApplicationCredentialSourceIds
|
||||
|
||||
@@ -27,6 +27,8 @@ type Target struct {
|
||||
SessionMaxSeconds uint32 `json:"session_max_seconds,omitempty"`
|
||||
SessionConnectionLimit int32 `json:"session_connection_limit,omitempty"`
|
||||
WorkerFilter string `json:"worker_filter,omitempty"`
|
||||
EgressWorkerFilter string `json:"egress_worker_filter,omitempty"`
|
||||
IngressWorkerFilter string `json:"ingress_worker_filter,omitempty"`
|
||||
ApplicationCredentialSourceIds []string `json:"application_credential_source_ids,omitempty"`
|
||||
ApplicationCredentialSources []*CredentialSource `json:"application_credential_sources,omitempty"`
|
||||
BrokeredCredentialSourceIds []string `json:"brokered_credential_source_ids,omitempty"`
|
||||
|
||||
Reference in new issue
Block a user