Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "refresh-and-forward", Flags: Flags, Action: clitools.CheckGlobalRequired(refreshAndForward, global.RequiredFlags), Usage: "Behaves the same way as refresh, but it also forwards " + "all requests to the provided host (the main container.)", }
View Source
var Flags = append( refresh.Flags, cli.IntFlag{ Name: "http-port", EnvVar: "HTTP_PORT", Value: 8000, Usage: "Port from to forward http requests.", }, cli.StringFlag{ Name: "forward-host", EnvVar: "FORWARD_HOST", Value: "localhost:8080", Usage: "Host address to which all requests should be forwarded.", }, cli.StringFlag{ Name: "forward-scheme", EnvVar: "FORWARD_SCHEME", Value: "https", Usage: `Scheme to use for forwarding the requests ("http" or "https").`, }, cli.DurationFlag{ Name: "forward-timeout", EnvVar: "FORWARD_TIMEOUT", Value: 3 * time.Second, Usage: `Timeout for request forward.`, }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.