Skip to content

Commit

Permalink
✨ adding ability to get a APIReader from the client.
Browse files Browse the repository at this point in the history
Adding a new interface `APIClient` to expose as part of the client
a non caching reader interface.

fixes kubernetes-sigs#180
fixes kubernetes-sigs#245
  • Loading branch information
Shawn Hurley committed Jan 2, 2019
1 parent 4c0ea9d commit c1f33a7
Show file tree
Hide file tree
Showing 6 changed files with 831 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ func (c *client) Status() StatusWriter {
return &statusWriter{client: c}
}

func (c *client) APIReader() Reader {
return c
}

// statusWriter is client.StatusWriter that writes status subresource
type statusWriter struct {
client *client
Expand Down
Loading

0 comments on commit c1f33a7

Please sign in to comment.