title: How to copy file to container with kubernetes client-go?
body: <p>I want to use <a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">https://github.com/kubernetes/client-go</a> to copy a file from my file system to a container and vice versa.</p>
  
  <pre><code>kubectl cp &lt;file-spec-src&gt; &lt;file-spec-dest&gt; -c &lt;specific-container&gt;
  </code></pre>
  
  <p>Is there a function in the go client that wraps the calls? Or can I use something like the <a href="https://godoc.org/k8s.io/client-go/kubernetes/typed/core/v1#CoreV1Interface.RESTClient" rel="nofollow noreferrer">RESTClient</a>?</p>