Exemplo n.º 1
0
// New creates a new Clientset for the given RESTClient.
func New(c restclient.Interface) *Clientset {
	var clientset Clientset
	clientset.CoreClient = internalversioncore.New(c)
	clientset.ExtensionsClient = internalversionextensions.New(c)
	clientset.FederationClient = internalversionfederation.New(c)

	clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
	return &clientset
}
Exemplo n.º 2
0
// New creates a new Clientset for the given RESTClient.
func New(c restclient.Interface) *Clientset {
	var cs Clientset
	cs.CoreClient = internalversioncore.New(c)
	cs.BatchClient = internalversionbatch.New(c)
	cs.ExtensionsClient = internalversionextensions.New(c)
	cs.FederationClient = internalversionfederation.New(c)

	cs.DiscoveryClient = discovery.NewDiscoveryClient(c)
	return &cs
}