feat(target): add proxy certificate repos and protos (#1577)

This commit is contained in:
Irena Rindos authored and irenarindos committed 2025-09-02 15:13:39 -04:00
1 parent bcd2a62890
commit 6afb42e334
13 files changed
+1489 -24

No files matched your search

+17
View File
@@ -56,6 +56,8 @@ type options struct {
WithNetResolver intglobals.NetIpResolver
WithStartPageAfterItem pagination.Item
withAliases []*talias.Alias
withAlias *talias.Alias
withTargetId string
}
func getDefaultOptions() options {
@@ -83,6 +85,7 @@ func getDefaultOptions() options {
WithIngressWorkerFilter: "",
WithAddress: "",
WithNetResolver: net.DefaultResolver,
withTargetId: "",
}
}
@@ -284,3 +287,17 @@ func WithAliases(in []*talias.Alias) Option {
o.withAliases = in
}
}
// WithAlias provides an option to provide a single alias.
func WithAlias(in *talias.Alias) Option {
return func(o *options) {
o.withAlias = in
}
}
// WithTargetId provides an option to provide a target ID.
func WithTargetId(in string) Option {
return func(o *options) {
o.withTargetId = in
}
}