NewClient returns a new client based on the passed in config. The codec is ignored, as the dynamic client uses it's own codec.
(conf *restclient.Config, version schema.GroupVersion)
| 72 | // NewClient returns a new client based on the passed in config. The |
| 73 | // codec is ignored, as the dynamic client uses it's own codec. |
| 74 | func NewClient(conf *restclient.Config, version schema.GroupVersion) (*Client, error) { |
| 75 | delegate, err := dynamic.NewForConfig(conf) |
| 76 | if err != nil { |
| 77 | return nil, err |
| 78 | } |
| 79 | |
| 80 | return &Client{version: version, delegate: delegate}, nil |
| 81 | } |
| 82 | |
| 83 | // Resource returns an API interface to the specified resource for this client's |
| 84 | // group and version. If resource is not a namespaced resource, then namespace |