Add pod/attach to the APIServer.

This commit is contained in:
Brendan Burns
2015-07-28 15:56:27 -07:00
parent 452bdcae2d
commit e8e756a719
12 changed files with 341 additions and 18 deletions

View File

@@ -1517,6 +1517,27 @@ type PodLogOptions struct {
Previous bool
}
// PodAttachOptions is the query options to a Pod's remote attach call
// TODO: merge w/ PodExecOptions below for stdin, stdout, etc
type PodAttachOptions struct {
TypeMeta `json:",inline"`
// Stdin if true indicates that stdin is to be redirected for the attach call
Stdin bool `json:"stdin,omitempty" description:"redirect the standard input stream of the pod for this call; defaults to false"`
// Stdout if true indicates that stdout is to be redirected for the attach call
Stdout bool `json:"stdout,omitempty" description:"redirect the standard output stream of the pod for this call; defaults to true"`
// Stderr if true indicates that stderr is to be redirected for the attach call
Stderr bool `json:"stderr,omitempty" description:"redirect the standard error stream of the pod for this call; defaults to true"`
// TTY if true indicates that a tty will be allocated for the attach call
TTY bool `json:"tty,omitempty" description:"allocate a terminal for this attach call; defaults to false"`
// Container to attach to.
Container string `json:"container,omitempty" description:"the container in which to execute the command. Defaults to only container if there is only one container in the pod."`
}
// PodExecOptions is the query options to a Pod's remote exec call
type PodExecOptions struct {
TypeMeta