// Attach prepares a streaming endpoint to attach to a running container.
Attach prepares a streaming endpoint to attach to a running container.
// Attach prepares a streaming endpoint to attach to a running container .
func (h *Runtime) Attach(req *kubeapi.AttachRequest) (*kubeapi.AttachResponse, error) {
	if h.streamingServer == nil {
		return nil, streaming.ErrorStreamingDisabled("attach")
	}
	err := ensureContainerRunning(h.client, req.ContainerId)
	if err != nil {
		return nil, err
	}
	return h.streamingServer.GetAttach(req)
}
func ( h * Runtime ) Attach ( req * kubeapi . AttachRequest ) ( * kubeapi . AttachResponse , error ) { if h . streamingServer == nil { return nil , streaming . ErrorStreamingDisabled ( " " ) } err := ensureContainerRunning ( h . client , req . ContainerId ) if err != nil { return nil , err } return h . streamingServer . GetAttach ( req ) }
Attach prepares a streaming endpoint to attach to a running container.
Attach prepares a streaming endpoint to attach to a running container .