...
1 package portForward
2
3 import (
4 "context"
5 "io"
6
7 "github.com/devfile/api/v2/pkg/apis/workspaces/v1alpha2"
8 "github.com/devfile/library/v2/pkg/devfile/parser"
9
10 "github.com/redhat-developer/odo/pkg/api"
11 )
12
13 type Client interface {
14
15
16
17
18
19 StartPortForwarding(
20 ctx context.Context,
21 devFileObj parser.DevfileObj,
22 componentName string,
23 debug bool,
24 randomPorts bool,
25 out io.Writer,
26 errOut io.Writer,
27 definedPorts []api.ForwardedPort,
28 customAddress string,
29 ) error
30
31
32 StopPortForwarding(ctx context.Context, componentName string)
33
34
35 GetForwardedPorts() map[string][]v1alpha2.Endpoint
36 }
37
View as plain text