Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jun 28, 2022
1 parent 3b8872b commit 261ebc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/portForward/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ import (
)

type Client interface {
// StartPortForwarding starts port forwarding for the endpoints defined in the containers of the devfile
// componentName indicates the name of component in the Devfile
// randomPorts indicates to affect random ports, instead of stable ports starting at 40001
// output will be written to errOut writer
StartPortForwarding(
devFileObj parser.DevfileObj,
componenentName string,
randomPorts bool,
errOut io.Writer,
) error

// StopPortForwarding stops the port forwarding
StopPortForwarding()
}

0 comments on commit 261ebc9

Please sign in to comment.