package rest
import "k8s.io/kubernetes/pkg/registry/generic/rest"
Package rest has generic implementations of resources used for REST responses
Index ¶
Types ¶
type LocationStreamer ¶
type LocationStreamer struct { Location *url.URL Transport http.RoundTripper ContentType string Flush bool }
LocationStreamer is a resource that streams the contents of a particular location URL
func (*LocationStreamer) InputStream ¶
func (s *LocationStreamer) InputStream(apiVersion, acceptHeader string) (stream io.ReadCloser, flush bool, contentType string, err error)
InputStream returns a stream with the contents of the URL location. If no location is provided, a null stream is returned.
func (*LocationStreamer) IsAnAPIObject ¶
func (*LocationStreamer) IsAnAPIObject()
IsAnAPIObject marks this object as a runtime.Object
Source Files ¶
doc.go streamer.go
- Version
- v0.15.0
- Published
- Apr 13, 2015
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 1 minute ago –
Tools for package owners.