- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ToRESTConfig (0.37 sec)
-
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go
// and eliminate the direct coupling to a struct type. Users may wish to duplicate this type in their own packages // as per the golang type overlapping. type RESTClientGetter interface { // ToRESTConfig returns restconfig ToRESTConfig() (*rest.Config, error) // ToDiscoveryClient returns discovery client ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) // ToRESTMapper returns a restmapper
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 11 15:04:11 UTC 2023 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder.go
} } // noopClientGetter implements RESTClientGetter returning only errors. // used as a dummy getter in a local-only builder. type noopClientGetter struct{} func (noopClientGetter) ToRESTConfig() (*rest.Config, error) { return nil, fmt.Errorf("local operation only") } func (noopClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) { return nil, fmt.Errorf("local operation only") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 37.2K bytes - Viewed (0) -
pkg/kube/client.go
func newClientInternal(clientFactory *clientFactory, opts ...ClientOption) (*client, error) { var c client var err error c.clientFactory = clientFactory c.config, err = clientFactory.ToRESTConfig() if err != nil { return nil, err } for _, opt := range opts { opt(&c) } c.restClient, err = clientFactory.RESTClient() if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0)