feat: add 'uc proxy' command to proxy a service port to a local port (#384)

Signed-off-by: Miek Gieben <miek@miek.nl>
Co-authored-by: Pasha Sviderski <me@psviderski.name>
This commit is contained in:
Miek GiebenandPasha Sviderski authored and GitHub committed 2026-06-02 18:56:16 +10:00
1 parent 24b81af43c
commit 3586a32987
6 files changed
+220 -1

No files matched your search

+5
View File
@@ -65,6 +65,11 @@ func (cli *Client) Close() error {
return errors.Join(cli.conn.Close(), cli.connector.Close())
}
// Dialer returns a proxy dialer for establishing connections within the cluster if supported by the connector.
func (cli *Client) Dialer() (proxy.ContextDialer, error) {
return cli.connector.Dialer()
}
// progressOut returns an output stream for progress writer.
func (cli *Client) progressOut() *streams.Out {
return streams.NewOut(os.Stdout)