code: func (r *LogREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error) {
  	logOpts, ok := opts.(*api.PodLogOptions)
  	if !ok {
  		return nil, fmt.Errorf("invalid options object: %#v", opts)
  	}
  	if errs := validation.ValidatePodLogOptions(logOpts); len(errs) > 0 {
  		return nil, errors.NewInvalid(api.Kind("PodLogOptions"), name, errs)
  	}
  	location, transport, err := pod.LogLocation(r.Store, r.KubeletConn, ctx, name, logOpts)
  	if err != nil {
  		return nil, err
  	}
  	return &genericrest.LocationStreamer{
  		Location:        location,
  		Transport:       transport,
  		ContentType:     "text/plain",
  		Flush:           logOpts.Follow,
  		ResponseChecker: genericrest.NewGenericHttpResponseChecker(api.Resource("pods/log"), name),
  		RedirectChecker: genericrest.PreventRedirects,
  	}, nil
  }
docs: // Get retrieves a runtime.Object that will stream the contents of the pod log