MCPcopy
hub / github.com/kubernetes/client-go / NewClient

Function NewClient

deprecated-dynamic/client.go:74–81  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
74func 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

Callers 2

getClientServerFunction · 0.85

Calls 1

NewForConfigFunction · 0.92

Tested by 1

getClientServerFunction · 0.68