Documentation
¶
Index ¶
- type ConnectShim
- type FrameKey
- type Proxy
- func (proxy *Proxy) GetLastStdinStream() []byte
- func (proxy *Proxy) GetProxyToken() string
- func (proxy *Proxy) SendExitNotification(payload []byte)
- func (proxy *Proxy) SendStderrStream(payload []byte)
- func (proxy *Proxy) SendStdoutStream(payload []byte)
- func (proxy *Proxy) Start()
- func (proxy *Proxy) Stop()
- type ShimSignal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectShim ¶
type ConnectShim struct {
Token string `json:"token"`
}
ConnectShim payload defined here, as it has not been defined in proxy api package yet
type FrameKey ¶
type FrameKey struct {
// contains filtered or unexported fields
}
FrameKey is a struct composed of the the frame type and opcode, used as a key for retrieving the handler for handling the frame.
type Proxy ¶
type Proxy struct {
ShimConnected chan bool
Signal chan ShimSignal
ShimDisconnected chan bool
StdinReceived chan bool
// contains filtered or unexported fields
}
Proxy is an object mocking clearcontainers Proxy
func (*Proxy) GetLastStdinStream ¶
GetLastStdinStream returns the last received stdin stream
func (*Proxy) GetProxyToken ¶
GetProxyToken returns the token that mock proxy uses to verify its client connection
func (*Proxy) SendExitNotification ¶
SendExitNotification sends an Exit Notification Frame to connected client
func (*Proxy) SendStderrStream ¶
SendStderrStream sends a Stderr Stream Frame to connected client
func (*Proxy) SendStdoutStream ¶
SendStdoutStream sends a Stdout Stream Frame to connected client
type ShimSignal ¶
type ShimSignal struct {
Signal int `json:"signalNumber"`
Row int `json:"rows,omitempty"`
Column int `json:"columns,omitempty"`
}
ShimSignal is the struct used to represent the signal received from the shim