From 5b8aa3112ecac7d9da8485c71c1af158b5507b62 Mon Sep 17 00:00:00 2001 From: Alex Suraci Date: Fri, 2 Feb 2024 15:43:37 -0500 Subject: [PATCH] Service.up: make `native` the default, add `random` (#6585) * Service.up: native is now default, + random: use `random: true` for the old behavior Signed-off-by: Alex Suraci * regen Signed-off-by: Alex Suraci --------- Signed-off-by: Alex Suraci --- dagger.gen.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dagger.gen.go b/dagger.gen.go index 55ffd52de..7ac5751f9 100644 --- a/dagger.gen.go +++ b/dagger.gen.go @@ -5888,9 +5888,12 @@ func (r *Service) Stop(ctx context.Context, opts ...ServiceStopOpts) (*Service, // ServiceUpOpts contains options for Service.Up type ServiceUpOpts struct { + // List of frontend/backend port mappings to forward. + // + // Frontend is the port accepting traffic on the host, backend is the service port. Ports []PortForward - - Native bool + // Bind each tunnel port to a random port on the host. + Random bool } // Creates a tunnel that forwards traffic from the caller's network to this service. @@ -5904,9 +5907,9 @@ func (r *Service) Up(ctx context.Context, opts ...ServiceUpOpts) (Void, error) { if !querybuilder.IsZeroValue(opts[i].Ports) { q = q.Arg("ports", opts[i].Ports) } - // `native` optional argument - if !querybuilder.IsZeroValue(opts[i].Native) { - q = q.Arg("native", opts[i].Native) + // `random` optional argument + if !querybuilder.IsZeroValue(opts[i].Random) { + q = q.Arg("random", opts[i].Random) } }