• Clayton Coleman's avatar
    Make RESTClient more generic to API version, simplify version handling · b03fbf90
    Clayton Coleman authored
    RESTClient is an abstraction on top of arbitrary HTTP endpoints that
    follow the Kubernetes API conventions. Refactored RESTClientFor so that
    assumptions that are Kube specific happen outside of that method (so
    others can reuse the RESTClient). Added more validation to client.New
    to ensure clients give good input. Exposed APIVersion on RESTClient
    as a method so that wrapper code (code that adds typed / structured
    methods over rest endpoints like client.Client) can more easily make
    decisions about what APIVersion it is running under.
    b03fbf90
Name
Last commit
Last update
..
config.go Loading commit data...
config_test.go Loading commit data...
config_test.json Loading commit data...