mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	remove release_1_4
remove archived federation clientsets update README
This commit is contained in:
		@@ -1,72 +1,39 @@
 | 
				
			|||||||
# Generation and release cycle of clientset
 | 
					# Generation and release cycle of clientset
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Client-gen is an automatic tool that generates
 | 
					Client-gen is an automatic tool that generates [clientset](../../docs/proposals/client-package-structure.md#high-level-client-sets) based on API types. This doc introduces the use the client-gen, and the release cycle of the generated clientsets.
 | 
				
			||||||
[clientset](../../docs/proposals/client-package-structure.md#high-level-client-sets)
 | 
					 | 
				
			||||||
based on API types. This doc introduces the use the client-gen, and the release
 | 
					 | 
				
			||||||
cycle of the generated clientsets.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Using client-gen
 | 
					## Using client-gen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The workflow includes four steps:
 | 
					The workflow includes three steps:
 | 
				
			||||||
- Marking API types with tags: in `pkg/apis/${GROUP}/${VERSION}/types.go`, mark
 | 
					 | 
				
			||||||
the types (e.g., Pods) that you want to generate clients for with the
 | 
					 | 
				
			||||||
`// +genclient=true` tag. If the resource associated with the type is not
 | 
					 | 
				
			||||||
namespace scoped (e.g., PersistentVolume), you need to append the
 | 
					 | 
				
			||||||
`nonNamespaced=true` tag as well.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Running the client-gen tool: you need to use the command line argument
 | 
					1. Marking API types with tags: in `pkg/apis/${GROUP}/${VERSION}/types.go`, mark the types (e.g., Pods) that you want to generate clients for with the `// +genclient=true` tag. If the resource associated with the type is not namespace scoped (e.g., PersistentVolume), you need to append the `nonNamespaced=true` tag as well.
 | 
				
			||||||
`--input` to specify the groups and versions of the APIs you want to generate
 | 
					
 | 
				
			||||||
clients for, client-gen will then look into
 | 
					2.
 | 
				
			||||||
`pkg/apis/${GROUP}/${VERSION}/types.go` and generate clients for the types you
 | 
					  - a. If you are developing in the k8s.io/kubernetes repository, you just need to run hack/update-codegen.sh.
 | 
				
			||||||
have marked with the `genclient` tags. For example, running:
 | 
					
 | 
				
			||||||
 | 
					  - b. If you are running client-gen outside of k8s.io/kubernetes, you need to use the command line argument `--input` to specify the groups and versions of the APIs you want to generate clients for, client-gen will then look into `pkg/apis/${GROUP}/${VERSION}/types.go` and generate clients for the types you have marked with the `genclient` tags. For example, to generated a clientset named "my_release" including clients for api/v1 objects and extensions/v1beta1 objects, you need to run:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
``` 
 | 
					``` 
 | 
				
			||||||
$ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release"
 | 
					$ client-gen --input="api/v1,extensions/v1beta1" --clientset-name="my_release"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
will generate a clientset named "my_release" which includes clients for api/v1
 | 
					3. ***Adding expansion methods***: client-gen only generates the common methods, such as CRUD. You can manually add additional methods through the expansion interface. For example, this [file](../../pkg/client/clientset_generated/release_1_5/typed/core/v1/pod_expansion.go) adds additional methods to Pod's client. As a convention, we put the expansion interface and its methods in file ${TYPE}_expansion.go. In most cases, you don't want to remove existing expansion files. So to make life easier, instead of creating a new clientset from scratch, ***you can copy and rename an existing clientset (so that all the expansion files are copied)***, and then run client-gen.
 | 
				
			||||||
objects and extensions/v1beta1 objects. You can run `$ client-gen --help` to see
 | 
					 | 
				
			||||||
other command line arguments.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- ***Adding expansion methods***: client-gen only generates the common methods,
 | 
					## Output of client-gen
 | 
				
			||||||
  such as `Create()` and `Delete()`. You can manually add additional methods
 | 
					 | 
				
			||||||
  through the expansion interface. For example, this
 | 
					 | 
				
			||||||
  [file](../../pkg/client/clientset_generated/release_1_4/typed/core/v1/pod_expansion.go)
 | 
					 | 
				
			||||||
  adds additional methods to Pod's client. As a convention, we put the expansion
 | 
					 | 
				
			||||||
  interface and its methods in file ${TYPE}_expansion.go. In most cases, you
 | 
					 | 
				
			||||||
  don't want to remove existing expansion files. So to make life easier,
 | 
					 | 
				
			||||||
  instead of creating a new clientset from scratch, ***you can copy and rename an
 | 
					 | 
				
			||||||
  existing clientset (so that all the expansion files are copied)***, and then run
 | 
					 | 
				
			||||||
  client-gen.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Generating fake clients for testing purposes: client-gen will generate a fake
 | 
					- clientset: the clientset will be generated at `pkg/client/clientset_generated/` by default, and you can change the path via the `--clientset-path` command line argument.
 | 
				
			||||||
clientset if the command line argument `--fake-clientset` is set. The fake
 | 
					 | 
				
			||||||
clientset provides the default implementation, you only need to fake out the
 | 
					 | 
				
			||||||
methods you care about when writing test cases.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The output of client-gen includes:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- clientset: the clientset will be generated at
 | 
					 | 
				
			||||||
`pkg/client/clientset_generated/` by default, and you can change the path via
 | 
					 | 
				
			||||||
the `--clientset-path` command line argument.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Individual typed clients and client for group: They will be generated at `pkg/client/clientset_generated/${clientset_name}/typed/generated/${GROUP}/${VERSION}/`
 | 
					- Individual typed clients and client for group: They will be generated at `pkg/client/clientset_generated/${clientset_name}/typed/generated/${GROUP}/${VERSION}/`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Released clientsets
 | 
					## Released clientsets
 | 
				
			||||||
 | 
					
 | 
				
			||||||
At the 1.2 release, we have two released clientsets in the repo:
 | 
					If you are contributing code to k8s.io/kubernetes, try to use the release_X_Y clientset in this [directory](../../pkg/client/clientset_generated/).
 | 
				
			||||||
internalclientset and release_1_2.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- internalclientset: because most components in our repo still deal with the
 | 
					If you need a stable Go client to build your own project, please refer to the [client-go repository](https://github.com/kubernetes/client-go).
 | 
				
			||||||
internal objects, the internalclientset talks in internal objects to ease the
 | 
					 | 
				
			||||||
adoption of clientset. We will keep updating it as our API evolves. Eventually
 | 
					 | 
				
			||||||
it will be replaced by a versioned clientset.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- release_1_2: release_1_2 clientset is a versioned clientset, it includes
 | 
					We are migrating k8s.io/kubernetes to use client-go as well, see issue [#35159](https://github.com/kubernetes/kubernetes/issues/35159).
 | 
				
			||||||
clients for the core v1 objects, extensions/v1beta1, autoscaling/v1, and
 | 
					
 | 
				
			||||||
batch/v1 objects. We will NOT update it after we cut the 1.2 release. After the
 | 
					<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> []() <!-- END MUNGE: GENERATED_ANALYTICS -->
 | 
				
			||||||
1.2 release, we will create release_1_3 clientset and keep it updated until we
 | 
					 | 
				
			||||||
cut release 1.3.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
 | 
					<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,30 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "clientset.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "import_known_versions.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/install:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/util/flowcontrol:go_default_library",
 | 
					 | 
				
			||||||
        "//vendor:github.com/golang/glog",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,107 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package federation_release_1_3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"github.com/golang/glog"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1"
 | 
					 | 
				
			||||||
	v1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	discovery "k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/util/flowcontrol"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type Interface interface {
 | 
					 | 
				
			||||||
	Discovery() discovery.DiscoveryInterface
 | 
					 | 
				
			||||||
	Federation() v1beta1federation.FederationInterface
 | 
					 | 
				
			||||||
	Core() v1core.CoreInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset contains the clients for groups. Each group has exactly one
 | 
					 | 
				
			||||||
// version included in a Clientset.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	*discovery.DiscoveryClient
 | 
					 | 
				
			||||||
	*v1beta1federation.FederationClient
 | 
					 | 
				
			||||||
	*v1core.CoreUnversionedClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Federation retrieves the FederationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Federation() v1beta1federation.FederationInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.FederationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreUnversionedClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.CoreUnversionedClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Discovery retrieves the DiscoveryClient
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return c.DiscoveryClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new Clientset for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*Clientset, error) {
 | 
					 | 
				
			||||||
	configShallowCopy := *c
 | 
					 | 
				
			||||||
	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
 | 
					 | 
				
			||||||
		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	var err error
 | 
					 | 
				
			||||||
	clientset.FederationClient, err = v1beta1federation.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient, err = v1core.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		glog.Errorf("failed to create the DiscoveryClient: %v", err)
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &clientset, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new Clientset for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.FederationClient = v1beta1federation.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient = v1core.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new Clientset for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.FederationClient = v1beta1federation.New(c)
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient = v1core.New(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated clientset.
 | 
					 | 
				
			||||||
package federation_release_1_3 // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3"
 | 
					 | 
				
			||||||
@@ -1,34 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "clientset_generated.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/core/v1/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,75 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	clientset "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1"
 | 
					 | 
				
			||||||
	fakev1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1/fake"
 | 
					 | 
				
			||||||
	v1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	fakediscovery "k8s.io/kubernetes/pkg/client/typed/discovery/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/runtime"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
 | 
					 | 
				
			||||||
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
 | 
					 | 
				
			||||||
// without applying any validations and/or defaults. It shouldn't be considered a replacement
 | 
					 | 
				
			||||||
// for a real clientset and is mostly useful in simple unit tests.
 | 
					 | 
				
			||||||
func NewSimpleClientset(objects ...runtime.Object) *Clientset {
 | 
					 | 
				
			||||||
	o := core.NewObjectTracker(api.Scheme, api.Codecs.UniversalDecoder())
 | 
					 | 
				
			||||||
	for _, obj := range objects {
 | 
					 | 
				
			||||||
		if err := o.Add(obj); err != nil {
 | 
					 | 
				
			||||||
			panic(err)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr := core.Fake{}
 | 
					 | 
				
			||||||
	fakePtr.AddReactor("*", "*", core.ObjectReaction(o, registered.RESTMapper()))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr.AddWatchReactor("*", core.DefaultWatchReactor(watch.NewFake(), nil))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return &Clientset{fakePtr}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset implements clientset.Interface. Meant to be embedded into a
 | 
					 | 
				
			||||||
// struct to get a default implementation. This makes faking out just the method
 | 
					 | 
				
			||||||
// you want to test easier.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return &fakediscovery.FakeDiscovery{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var _ clientset.Interface = &Clientset{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Federation retrieves the FederationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Federation() v1beta1federation.FederationInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1federation.FakeFederation{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreUnversionedClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	return &fakev1core.FakeCore{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated fake clientset.
 | 
					 | 
				
			||||||
package fake // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/fake"
 | 
					 | 
				
			||||||
@@ -1,25 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package federation_release_1_3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// These imports are the API groups the client will support.
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/federation/apis/federation/install"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func init() {
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,30 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "core_client.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "generated_expansion.go",
 | 
					 | 
				
			||||||
        "service.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime/serializer:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type CoreInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	ServicesGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// CoreUnversionedClient is used to interact with features provided by the Core group.
 | 
					 | 
				
			||||||
type CoreUnversionedClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) Services(namespace string) ServiceInterface {
 | 
					 | 
				
			||||||
	return newServices(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new CoreUnversionedClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*CoreUnversionedClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &CoreUnversionedClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new CoreUnversionedClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *CoreUnversionedClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new CoreUnversionedClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *CoreUnversionedClient {
 | 
					 | 
				
			||||||
	return &CoreUnversionedClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if core group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/api"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1 // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1"
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "fake_core_client.go",
 | 
					 | 
				
			||||||
        "fake_service.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/unversioned:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/labels:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1/fake"
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/core/v1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeCore struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeCore) Services(namespace string) v1.ServiceInterface {
 | 
					 | 
				
			||||||
	return &FakeServices{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeCore) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,127 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeServices implements ServiceInterface
 | 
					 | 
				
			||||||
type FakeServices struct {
 | 
					 | 
				
			||||||
	Fake *FakeCore
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var servicesResource = unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "services"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Create(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(servicesResource, c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Update(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(servicesResource, c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) UpdateStatus(service *v1.Service) (*v1.Service, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(servicesResource, c.ns, name), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(servicesResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1.ServiceList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Get(name string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(servicesResource, c.ns, name), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) List(opts api.ListOptions) (result *v1.ServiceList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(servicesResource, c.ns, opts), &v1.ServiceList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1.ServiceList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1.ServiceList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested services.
 | 
					 | 
				
			||||||
func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched service.
 | 
					 | 
				
			||||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchAction(servicesResource, c.ns, name, data), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,21 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ServiceExpansion interface{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type SecretExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,164 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ServicesGetter has a method to return a ServiceInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type ServicesGetter interface {
 | 
					 | 
				
			||||||
	Services(namespace string) ServiceInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ServiceInterface has methods to work with Service resources.
 | 
					 | 
				
			||||||
type ServiceInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	Update(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1.Service, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1.ServiceList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error)
 | 
					 | 
				
			||||||
	ServiceExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// services implements ServiceInterface
 | 
					 | 
				
			||||||
type services struct {
 | 
					 | 
				
			||||||
	client *CoreUnversionedClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newServices returns a Services
 | 
					 | 
				
			||||||
func newServices(c *CoreUnversionedClient, namespace string) *services {
 | 
					 | 
				
			||||||
	return &services{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *services) Create(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *services) Update(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(service.Name).
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *services) UpdateStatus(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(service.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the service and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *services) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *services) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the service, and returns the corresponding service object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *services) Get(name string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Services that match those selectors.
 | 
					 | 
				
			||||||
func (c *services) List(opts api.ListOptions) (result *v1.ServiceList, err error) {
 | 
					 | 
				
			||||||
	result = &v1.ServiceList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested services.
 | 
					 | 
				
			||||||
func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched service.
 | 
					 | 
				
			||||||
func (c *services) Patch(name string, pt api.PatchType, data []byte) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,30 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "cluster.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "federation_client.go",
 | 
					 | 
				
			||||||
        "generated_expansion.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime/serializer:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,153 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ClustersGetter has a method to return a ClusterInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type ClustersGetter interface {
 | 
					 | 
				
			||||||
	Clusters() ClusterInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ClusterInterface has methods to work with Cluster resources.
 | 
					 | 
				
			||||||
type ClusterInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	Update(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1beta1.ClusterList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error)
 | 
					 | 
				
			||||||
	ClusterExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// clusters implements ClusterInterface
 | 
					 | 
				
			||||||
type clusters struct {
 | 
					 | 
				
			||||||
	client *FederationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newClusters returns a Clusters
 | 
					 | 
				
			||||||
func newClusters(c *FederationClient) *clusters {
 | 
					 | 
				
			||||||
	return &clusters{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(cluster.Name).
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *clusters) UpdateStatus(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(cluster.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the cluster and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *clusters) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *clusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Get(name string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Clusters that match those selectors.
 | 
					 | 
				
			||||||
func (c *clusters) List(opts api.ListOptions) (result *v1beta1.ClusterList, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ClusterList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested clusters.
 | 
					 | 
				
			||||||
func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched cluster.
 | 
					 | 
				
			||||||
func (c *clusters) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1beta1 // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "fake_cluster.go",
 | 
					 | 
				
			||||||
        "fake_federation_client.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/unversioned:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/labels:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_3 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service] --input=[../../federation/apis/federation/v1beta1,api/v1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake // import "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1/fake"
 | 
					 | 
				
			||||||
@@ -1,118 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeClusters implements ClusterInterface
 | 
					 | 
				
			||||||
type FakeClusters struct {
 | 
					 | 
				
			||||||
	Fake *FakeFederation
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var clustersResource = unversioned.GroupVersionResource{Group: "federation", Version: "v1beta1", Resource: "clusters"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootCreateAction(clustersResource, cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateAction(clustersResource, cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) UpdateStatus(cluster *v1beta1.Cluster) (*v1beta1.Cluster, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootDeleteAction(clustersResource, name), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewRootDeleteCollectionAction(clustersResource, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1beta1.ClusterList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Get(name string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootGetAction(clustersResource, name), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) List(opts api.ListOptions) (result *v1beta1.ClusterList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootListAction(clustersResource, opts), &v1beta1.ClusterList{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1beta1.ClusterList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1beta1.ClusterList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested clusters.
 | 
					 | 
				
			||||||
func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewRootWatchAction(clustersResource, opts))
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched cluster.
 | 
					 | 
				
			||||||
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootPatchAction(clustersResource, name, data), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_3/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeFederation struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeFederation) Clusters() v1beta1.ClusterInterface {
 | 
					 | 
				
			||||||
	return &FakeClusters{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeFederation) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FederationInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	ClustersGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FederationClient is used to interact with features provided by the Federation group.
 | 
					 | 
				
			||||||
type FederationClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FederationClient) Clusters() ClusterInterface {
 | 
					 | 
				
			||||||
	return newClusters(c)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new FederationClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*FederationClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &FederationClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new FederationClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *FederationClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new FederationClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *FederationClient {
 | 
					 | 
				
			||||||
	return &FederationClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if federation group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("federation")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FederationClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,19 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ClusterExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "clientset.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "import_known_versions.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/install:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/util/flowcontrol:go_default_library",
 | 
					 | 
				
			||||||
        "//vendor:github.com/golang/glog",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,124 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package federation_release_1_4
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"github.com/golang/glog"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/core/v1"
 | 
					 | 
				
			||||||
	v1beta1extensions "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1"
 | 
					 | 
				
			||||||
	v1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	discovery "k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/util/flowcontrol"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type Interface interface {
 | 
					 | 
				
			||||||
	Discovery() discovery.DiscoveryInterface
 | 
					 | 
				
			||||||
	Federation() v1beta1federation.FederationInterface
 | 
					 | 
				
			||||||
	Core() v1core.CoreInterface
 | 
					 | 
				
			||||||
	Extensions() v1beta1extensions.ExtensionsInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset contains the clients for groups. Each group has exactly one
 | 
					 | 
				
			||||||
// version included in a Clientset.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	*discovery.DiscoveryClient
 | 
					 | 
				
			||||||
	*v1beta1federation.FederationClient
 | 
					 | 
				
			||||||
	*v1core.CoreUnversionedClient
 | 
					 | 
				
			||||||
	*v1beta1extensions.ExtensionsClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Federation retrieves the FederationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Federation() v1beta1federation.FederationInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.FederationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreUnversionedClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.CoreUnversionedClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Extensions retrieves the ExtensionsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.ExtensionsClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Discovery retrieves the DiscoveryClient
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return c.DiscoveryClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new Clientset for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*Clientset, error) {
 | 
					 | 
				
			||||||
	configShallowCopy := *c
 | 
					 | 
				
			||||||
	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
 | 
					 | 
				
			||||||
		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	var err error
 | 
					 | 
				
			||||||
	clientset.FederationClient, err = v1beta1federation.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient, err = v1core.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient, err = v1beta1extensions.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		glog.Errorf("failed to create the DiscoveryClient: %v", err)
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &clientset, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new Clientset for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.FederationClient = v1beta1federation.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient = v1core.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient = v1beta1extensions.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new Clientset for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.FederationClient = v1beta1federation.New(c)
 | 
					 | 
				
			||||||
	clientset.CoreUnversionedClient = v1core.New(c)
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient = v1beta1extensions.New(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated clientset.
 | 
					 | 
				
			||||||
package federation_release_1_4
 | 
					 | 
				
			||||||
@@ -1,36 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "clientset_generated.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/core/v1/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/typed/discovery/fake:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,82 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	clientset "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/core/v1"
 | 
					 | 
				
			||||||
	fakev1core "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/core/v1/fake"
 | 
					 | 
				
			||||||
	v1beta1extensions "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1extensions "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1/fake"
 | 
					 | 
				
			||||||
	v1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1federation "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	fakediscovery "k8s.io/kubernetes/pkg/client/typed/discovery/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/runtime"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
 | 
					 | 
				
			||||||
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
 | 
					 | 
				
			||||||
// without applying any validations and/or defaults. It shouldn't be considered a replacement
 | 
					 | 
				
			||||||
// for a real clientset and is mostly useful in simple unit tests.
 | 
					 | 
				
			||||||
func NewSimpleClientset(objects ...runtime.Object) *Clientset {
 | 
					 | 
				
			||||||
	o := core.NewObjectTracker(api.Scheme, api.Codecs.UniversalDecoder())
 | 
					 | 
				
			||||||
	for _, obj := range objects {
 | 
					 | 
				
			||||||
		if err := o.Add(obj); err != nil {
 | 
					 | 
				
			||||||
			panic(err)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr := core.Fake{}
 | 
					 | 
				
			||||||
	fakePtr.AddReactor("*", "*", core.ObjectReaction(o, registered.RESTMapper()))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr.AddWatchReactor("*", core.DefaultWatchReactor(watch.NewFake(), nil))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return &Clientset{fakePtr}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset implements clientset.Interface. Meant to be embedded into a
 | 
					 | 
				
			||||||
// struct to get a default implementation. This makes faking out just the method
 | 
					 | 
				
			||||||
// you want to test easier.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return &fakediscovery.FakeDiscovery{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var _ clientset.Interface = &Clientset{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Federation retrieves the FederationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Federation() v1beta1federation.FederationInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1federation.FakeFederation{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreUnversionedClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	return &fakev1core.FakeCore{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Extensions retrieves the ExtensionsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1extensions.FakeExtensions{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated fake clientset.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,25 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package federation_release_1_4
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// These imports are the API groups the client will support.
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/federation/apis/federation/install"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func init() {
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,34 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "core_client.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "event.go",
 | 
					 | 
				
			||||||
        "generated_expansion.go",
 | 
					 | 
				
			||||||
        "namespace.go",
 | 
					 | 
				
			||||||
        "namespace_expansion.go",
 | 
					 | 
				
			||||||
        "secret.go",
 | 
					 | 
				
			||||||
        "service.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime/serializer:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,111 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type CoreInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	EventsGetter
 | 
					 | 
				
			||||||
	NamespacesGetter
 | 
					 | 
				
			||||||
	SecretsGetter
 | 
					 | 
				
			||||||
	ServicesGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// CoreUnversionedClient is used to interact with features provided by the Core group.
 | 
					 | 
				
			||||||
type CoreUnversionedClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) Events(namespace string) EventInterface {
 | 
					 | 
				
			||||||
	return newEvents(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) Namespaces() NamespaceInterface {
 | 
					 | 
				
			||||||
	return newNamespaces(c)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) Secrets(namespace string) SecretInterface {
 | 
					 | 
				
			||||||
	return newSecrets(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) Services(namespace string) ServiceInterface {
 | 
					 | 
				
			||||||
	return newServices(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new CoreUnversionedClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*CoreUnversionedClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &CoreUnversionedClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new CoreUnversionedClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *CoreUnversionedClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new CoreUnversionedClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *CoreUnversionedClient {
 | 
					 | 
				
			||||||
	return &CoreUnversionedClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if core group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/api"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *CoreUnversionedClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
@@ -1,151 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// EventsGetter has a method to return a EventInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type EventsGetter interface {
 | 
					 | 
				
			||||||
	Events(namespace string) EventInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// EventInterface has methods to work with Event resources.
 | 
					 | 
				
			||||||
type EventInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1.Event) (*v1.Event, error)
 | 
					 | 
				
			||||||
	Update(*v1.Event) (*v1.Event, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1.Event, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1.EventList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error)
 | 
					 | 
				
			||||||
	EventExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// events implements EventInterface
 | 
					 | 
				
			||||||
type events struct {
 | 
					 | 
				
			||||||
	client *CoreUnversionedClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newEvents returns a Events
 | 
					 | 
				
			||||||
func newEvents(c *CoreUnversionedClient, namespace string) *events {
 | 
					 | 
				
			||||||
	return &events{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a event and creates it.  Returns the server's representation of the event, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *events) Create(event *v1.Event) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Event{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		Body(event).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a event and updates it. Returns the server's representation of the event, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *events) Update(event *v1.Event) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Event{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		Name(event.Name).
 | 
					 | 
				
			||||||
		Body(event).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the event and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *events) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *events) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the event, and returns the corresponding event object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *events) Get(name string) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Event{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Events that match those selectors.
 | 
					 | 
				
			||||||
func (c *events) List(opts api.ListOptions) (result *v1.EventList, err error) {
 | 
					 | 
				
			||||||
	result = &v1.EventList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested events.
 | 
					 | 
				
			||||||
func (c *events) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched event.
 | 
					 | 
				
			||||||
func (c *events) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Event{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("events").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,35 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "fake_core_client.go",
 | 
					 | 
				
			||||||
        "fake_event.go",
 | 
					 | 
				
			||||||
        "fake_namespace.go",
 | 
					 | 
				
			||||||
        "fake_namespace_expansion.go",
 | 
					 | 
				
			||||||
        "fake_secret.go",
 | 
					 | 
				
			||||||
        "fake_service.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/core/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/unversioned:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/v1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/labels:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,49 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/core/v1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeCore struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeCore) Events(namespace string) v1.EventInterface {
 | 
					 | 
				
			||||||
	return &FakeEvents{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeCore) Namespaces() v1.NamespaceInterface {
 | 
					 | 
				
			||||||
	return &FakeNamespaces{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeCore) Secrets(namespace string) v1.SecretInterface {
 | 
					 | 
				
			||||||
	return &FakeSecrets{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeCore) Services(namespace string) v1.ServiceInterface {
 | 
					 | 
				
			||||||
	return &FakeServices{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeCore) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,117 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeEvents implements EventInterface
 | 
					 | 
				
			||||||
type FakeEvents struct {
 | 
					 | 
				
			||||||
	Fake *FakeCore
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var eventsResource = unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "events"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) Create(event *v1.Event) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(eventsResource, c.ns, event), &v1.Event{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Event), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) Update(event *v1.Event) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(eventsResource, c.ns, event), &v1.Event{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Event), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(eventsResource, c.ns, name), &v1.Event{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(eventsResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1.EventList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) Get(name string) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(eventsResource, c.ns, name), &v1.Event{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Event), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeEvents) List(opts api.ListOptions) (result *v1.EventList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(eventsResource, c.ns, opts), &v1.EventList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1.EventList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1.EventList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested events.
 | 
					 | 
				
			||||||
func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(eventsResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched event.
 | 
					 | 
				
			||||||
func (c *FakeEvents) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Event, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchSubresourceAction(eventsResource, c.ns, name, data, subresources...), &v1.Event{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Event), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,118 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeNamespaces implements NamespaceInterface
 | 
					 | 
				
			||||||
type FakeNamespaces struct {
 | 
					 | 
				
			||||||
	Fake *FakeCore
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var namespacesResource = unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Create(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootCreateAction(namespacesResource, namespace), &v1.Namespace{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Update(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateAction(namespacesResource, namespace), &v1.Namespace{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) UpdateStatus(namespace *v1.Namespace) (*v1.Namespace, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateSubresourceAction(namespacesResource, "status", namespace), &v1.Namespace{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootDeleteAction(namespacesResource, name), &v1.Namespace{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewRootDeleteCollectionAction(namespacesResource, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1.NamespaceList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Get(name string) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootGetAction(namespacesResource, name), &v1.Namespace{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) List(opts api.ListOptions) (result *v1.NamespaceList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootListAction(namespacesResource, opts), &v1.NamespaceList{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1.NamespaceList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1.NamespaceList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested namespaces.
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewRootWatchAction(namespacesResource, opts))
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched namespace.
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootPatchSubresourceAction(namespacesResource, name, data, subresources...), &v1.Namespace{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeNamespaces) Finalize(namespace *v1.Namespace) (*v1.Namespace, error) {
 | 
					 | 
				
			||||||
	action := core.CreateActionImpl{}
 | 
					 | 
				
			||||||
	action.Verb = "create"
 | 
					 | 
				
			||||||
	action.Resource = namespacesResource
 | 
					 | 
				
			||||||
	action.Subresource = "finalize"
 | 
					 | 
				
			||||||
	action.Object = namespace
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	obj, err := c.Fake.Invokes(action, namespace)
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return obj.(*v1.Namespace), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,117 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeSecrets implements SecretInterface
 | 
					 | 
				
			||||||
type FakeSecrets struct {
 | 
					 | 
				
			||||||
	Fake *FakeCore
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var secretsResource = unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "secrets"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Create(secret *v1.Secret) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(secretsResource, c.ns, secret), &v1.Secret{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Secret), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Update(secret *v1.Secret) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(secretsResource, c.ns, secret), &v1.Secret{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Secret), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(secretsResource, c.ns, name), &v1.Secret{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(secretsResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1.SecretList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Get(name string) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(secretsResource, c.ns, name), &v1.Secret{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Secret), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSecrets) List(opts api.ListOptions) (result *v1.SecretList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(secretsResource, c.ns, opts), &v1.SecretList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1.SecretList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1.SecretList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested secrets.
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(secretsResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched secret.
 | 
					 | 
				
			||||||
func (c *FakeSecrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchSubresourceAction(secretsResource, c.ns, name, data, subresources...), &v1.Secret{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Secret), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,127 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeServices implements ServiceInterface
 | 
					 | 
				
			||||||
type FakeServices struct {
 | 
					 | 
				
			||||||
	Fake *FakeCore
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var servicesResource = unversioned.GroupVersionResource{Group: "", Version: "v1", Resource: "services"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Create(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(servicesResource, c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Update(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(servicesResource, c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) UpdateStatus(service *v1.Service) (*v1.Service, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateSubresourceAction(servicesResource, "status", c.ns, service), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(servicesResource, c.ns, name), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(servicesResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1.ServiceList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) Get(name string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(servicesResource, c.ns, name), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeServices) List(opts api.ListOptions) (result *v1.ServiceList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(servicesResource, c.ns, opts), &v1.ServiceList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1.ServiceList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1.ServiceList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested services.
 | 
					 | 
				
			||||||
func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(servicesResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched service.
 | 
					 | 
				
			||||||
func (c *FakeServices) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchSubresourceAction(servicesResource, c.ns, name, data, subresources...), &v1.Service{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1.Service), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,23 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type EventExpansion interface{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type SecretExpansion interface{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ServiceExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,154 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NamespacesGetter has a method to return a NamespaceInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type NamespacesGetter interface {
 | 
					 | 
				
			||||||
	Namespaces() NamespaceInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NamespaceInterface has methods to work with Namespace resources.
 | 
					 | 
				
			||||||
type NamespaceInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1.Namespace) (*v1.Namespace, error)
 | 
					 | 
				
			||||||
	Update(*v1.Namespace) (*v1.Namespace, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1.Namespace) (*v1.Namespace, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1.Namespace, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1.NamespaceList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error)
 | 
					 | 
				
			||||||
	NamespaceExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// namespaces implements NamespaceInterface
 | 
					 | 
				
			||||||
type namespaces struct {
 | 
					 | 
				
			||||||
	client *CoreUnversionedClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newNamespaces returns a Namespaces
 | 
					 | 
				
			||||||
func newNamespaces(c *CoreUnversionedClient) *namespaces {
 | 
					 | 
				
			||||||
	return &namespaces{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a namespace and creates it.  Returns the server's representation of the namespace, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *namespaces) Create(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		Body(namespace).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a namespace and updates it. Returns the server's representation of the namespace, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *namespaces) Update(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		Name(namespace.Name).
 | 
					 | 
				
			||||||
		Body(namespace).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *namespaces) UpdateStatus(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		Name(namespace.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(namespace).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the namespace and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *namespaces) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *namespaces) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the namespace, and returns the corresponding namespace object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *namespaces) Get(name string) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Namespaces that match those selectors.
 | 
					 | 
				
			||||||
func (c *namespaces) List(opts api.ListOptions) (result *v1.NamespaceList, err error) {
 | 
					 | 
				
			||||||
	result = &v1.NamespaceList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested namespaces.
 | 
					 | 
				
			||||||
func (c *namespaces) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched namespace.
 | 
					 | 
				
			||||||
func (c *namespaces) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Resource("namespaces").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface.
 | 
					 | 
				
			||||||
type NamespaceExpansion interface {
 | 
					 | 
				
			||||||
	Finalize(item *v1.Namespace) (*v1.Namespace, error)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Finalize takes the representation of a namespace to update.  Returns the server's representation of the namespace, and an error, if it occurs.
 | 
					 | 
				
			||||||
func (c *namespaces) Finalize(namespace *v1.Namespace) (result *v1.Namespace, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Namespace{}
 | 
					 | 
				
			||||||
	err = c.client.Put().Resource("namespaces").Name(namespace.Name).SubResource("finalize").Body(namespace).Do().Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,151 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// SecretsGetter has a method to return a SecretInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type SecretsGetter interface {
 | 
					 | 
				
			||||||
	Secrets(namespace string) SecretInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// SecretInterface has methods to work with Secret resources.
 | 
					 | 
				
			||||||
type SecretInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1.Secret) (*v1.Secret, error)
 | 
					 | 
				
			||||||
	Update(*v1.Secret) (*v1.Secret, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1.Secret, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1.SecretList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error)
 | 
					 | 
				
			||||||
	SecretExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// secrets implements SecretInterface
 | 
					 | 
				
			||||||
type secrets struct {
 | 
					 | 
				
			||||||
	client *CoreUnversionedClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newSecrets returns a Secrets
 | 
					 | 
				
			||||||
func newSecrets(c *CoreUnversionedClient, namespace string) *secrets {
 | 
					 | 
				
			||||||
	return &secrets{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *secrets) Create(secret *v1.Secret) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Secret{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		Body(secret).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a secret and updates it. Returns the server's representation of the secret, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *secrets) Update(secret *v1.Secret) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Secret{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		Name(secret.Name).
 | 
					 | 
				
			||||||
		Body(secret).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the secret and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *secrets) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *secrets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the secret, and returns the corresponding secret object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *secrets) Get(name string) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Secret{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Secrets that match those selectors.
 | 
					 | 
				
			||||||
func (c *secrets) List(opts api.ListOptions) (result *v1.SecretList, err error) {
 | 
					 | 
				
			||||||
	result = &v1.SecretList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested secrets.
 | 
					 | 
				
			||||||
func (c *secrets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched secret.
 | 
					 | 
				
			||||||
func (c *secrets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Secret, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Secret{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("secrets").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,165 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ServicesGetter has a method to return a ServiceInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type ServicesGetter interface {
 | 
					 | 
				
			||||||
	Services(namespace string) ServiceInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ServiceInterface has methods to work with Service resources.
 | 
					 | 
				
			||||||
type ServiceInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	Update(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1.Service) (*v1.Service, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1.Service, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1.ServiceList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error)
 | 
					 | 
				
			||||||
	ServiceExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// services implements ServiceInterface
 | 
					 | 
				
			||||||
type services struct {
 | 
					 | 
				
			||||||
	client *CoreUnversionedClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newServices returns a Services
 | 
					 | 
				
			||||||
func newServices(c *CoreUnversionedClient, namespace string) *services {
 | 
					 | 
				
			||||||
	return &services{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a service and creates it.  Returns the server's representation of the service, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *services) Create(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a service and updates it. Returns the server's representation of the service, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *services) Update(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(service.Name).
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *services) UpdateStatus(service *v1.Service) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(service.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(service).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the service and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *services) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *services) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the service, and returns the corresponding service object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *services) Get(name string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Services that match those selectors.
 | 
					 | 
				
			||||||
func (c *services) List(opts api.ListOptions) (result *v1.ServiceList, err error) {
 | 
					 | 
				
			||||||
	result = &v1.ServiceList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested services.
 | 
					 | 
				
			||||||
func (c *services) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched service.
 | 
					 | 
				
			||||||
func (c *services) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Service, err error) {
 | 
					 | 
				
			||||||
	result = &v1.Service{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("services").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "extensions_client.go",
 | 
					 | 
				
			||||||
        "generated_expansion.go",
 | 
					 | 
				
			||||||
        "ingress.go",
 | 
					 | 
				
			||||||
        "replicaset.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apis/extensions/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime/serializer:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
@@ -1,101 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ExtensionsInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	IngressesGetter
 | 
					 | 
				
			||||||
	ReplicaSetsGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ExtensionsClient is used to interact with features provided by the Extensions group.
 | 
					 | 
				
			||||||
type ExtensionsClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *ExtensionsClient) Ingresses(namespace string) IngressInterface {
 | 
					 | 
				
			||||||
	return newIngresses(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *ExtensionsClient) ReplicaSets(namespace string) ReplicaSetInterface {
 | 
					 | 
				
			||||||
	return newReplicaSets(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new ExtensionsClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*ExtensionsClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &ExtensionsClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new ExtensionsClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *ExtensionsClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new ExtensionsClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *ExtensionsClient {
 | 
					 | 
				
			||||||
	return &ExtensionsClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if extensions group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("extensions")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *ExtensionsClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,32 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "fake_extensions_client.go",
 | 
					 | 
				
			||||||
        "fake_ingress.go",
 | 
					 | 
				
			||||||
        "fake_replicaset.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/unversioned:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apis/extensions/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/labels:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,41 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/extensions/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeExtensions struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeExtensions) Ingresses(namespace string) v1beta1.IngressInterface {
 | 
					 | 
				
			||||||
	return &FakeIngresses{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeExtensions) ReplicaSets(namespace string) v1beta1.ReplicaSetInterface {
 | 
					 | 
				
			||||||
	return &FakeReplicaSets{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeExtensions) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,127 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeIngresses implements IngressInterface
 | 
					 | 
				
			||||||
type FakeIngresses struct {
 | 
					 | 
				
			||||||
	Fake *FakeExtensions
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var ingressesResource = unversioned.GroupVersionResource{Group: "extensions", Version: "v1beta1", Resource: "ingresses"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Create(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Ingress), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Update(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(ingressesResource, c.ns, ingress), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Ingress), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) UpdateStatus(ingress *v1beta1.Ingress) (*v1beta1.Ingress, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateSubresourceAction(ingressesResource, "status", c.ns, ingress), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Ingress), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(ingressesResource, c.ns, name), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(ingressesResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1beta1.IngressList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Get(name string) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(ingressesResource, c.ns, name), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Ingress), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeIngresses) List(opts api.ListOptions) (result *v1beta1.IngressList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(ingressesResource, c.ns, opts), &v1beta1.IngressList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1beta1.IngressList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1beta1.IngressList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested ingresses.
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(ingressesResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched ingress.
 | 
					 | 
				
			||||||
func (c *FakeIngresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchSubresourceAction(ingressesResource, c.ns, name, data, subresources...), &v1beta1.Ingress{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Ingress), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,127 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeReplicaSets implements ReplicaSetInterface
 | 
					 | 
				
			||||||
type FakeReplicaSets struct {
 | 
					 | 
				
			||||||
	Fake *FakeExtensions
 | 
					 | 
				
			||||||
	ns   string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var replicasetsResource = unversioned.GroupVersionResource{Group: "extensions", Version: "v1beta1", Resource: "replicasets"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Create(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewCreateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.ReplicaSet), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Update(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateAction(replicasetsResource, c.ns, replicaSet), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.ReplicaSet), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewUpdateSubresourceAction(replicasetsResource, "status", c.ns, replicaSet), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.ReplicaSet), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewDeleteAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewDeleteCollectionAction(replicasetsResource, c.ns, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1beta1.ReplicaSetList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Get(name string) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewGetAction(replicasetsResource, c.ns, name), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.ReplicaSet), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) List(opts api.ListOptions) (result *v1beta1.ReplicaSetList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewListAction(replicasetsResource, c.ns, opts), &v1beta1.ReplicaSetList{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1beta1.ReplicaSetList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1beta1.ReplicaSetList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested replicaSets.
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewWatchAction(replicasetsResource, c.ns, opts))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched replicaSet.
 | 
					 | 
				
			||||||
func (c *FakeReplicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewPatchSubresourceAction(replicasetsResource, c.ns, name, data, subresources...), &v1beta1.ReplicaSet{})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.ReplicaSet), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,21 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type IngressExpansion interface{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ReplicaSetExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,165 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// IngressesGetter has a method to return a IngressInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type IngressesGetter interface {
 | 
					 | 
				
			||||||
	Ingresses(namespace string) IngressInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// IngressInterface has methods to work with Ingress resources.
 | 
					 | 
				
			||||||
type IngressInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1beta1.Ingress) (*v1beta1.Ingress, error)
 | 
					 | 
				
			||||||
	Update(*v1beta1.Ingress) (*v1beta1.Ingress, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1beta1.Ingress) (*v1beta1.Ingress, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1beta1.Ingress, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1beta1.IngressList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error)
 | 
					 | 
				
			||||||
	IngressExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ingresses implements IngressInterface
 | 
					 | 
				
			||||||
type ingresses struct {
 | 
					 | 
				
			||||||
	client *ExtensionsClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newIngresses returns a Ingresses
 | 
					 | 
				
			||||||
func newIngresses(c *ExtensionsClient, namespace string) *ingresses {
 | 
					 | 
				
			||||||
	return &ingresses{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a ingress and creates it.  Returns the server's representation of the ingress, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *ingresses) Create(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Ingress{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		Body(ingress).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a ingress and updates it. Returns the server's representation of the ingress, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *ingresses) Update(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Ingress{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		Name(ingress.Name).
 | 
					 | 
				
			||||||
		Body(ingress).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *ingresses) UpdateStatus(ingress *v1beta1.Ingress) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Ingress{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		Name(ingress.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(ingress).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the ingress and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *ingresses) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *ingresses) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the ingress, and returns the corresponding ingress object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *ingresses) Get(name string) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Ingress{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Ingresses that match those selectors.
 | 
					 | 
				
			||||||
func (c *ingresses) List(opts api.ListOptions) (result *v1beta1.IngressList, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.IngressList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested ingresses.
 | 
					 | 
				
			||||||
func (c *ingresses) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched ingress.
 | 
					 | 
				
			||||||
func (c *ingresses) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Ingress, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Ingress{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("ingresses").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,165 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/apis/extensions/v1beta1"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ReplicaSetsGetter has a method to return a ReplicaSetInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type ReplicaSetsGetter interface {
 | 
					 | 
				
			||||||
	ReplicaSets(namespace string) ReplicaSetInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ReplicaSetInterface has methods to work with ReplicaSet resources.
 | 
					 | 
				
			||||||
type ReplicaSetInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
 | 
					 | 
				
			||||||
	Update(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1beta1.ReplicaSet) (*v1beta1.ReplicaSet, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1beta1.ReplicaSet, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1beta1.ReplicaSetList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error)
 | 
					 | 
				
			||||||
	ReplicaSetExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// replicaSets implements ReplicaSetInterface
 | 
					 | 
				
			||||||
type replicaSets struct {
 | 
					 | 
				
			||||||
	client *ExtensionsClient
 | 
					 | 
				
			||||||
	ns     string
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newReplicaSets returns a ReplicaSets
 | 
					 | 
				
			||||||
func newReplicaSets(c *ExtensionsClient, namespace string) *replicaSets {
 | 
					 | 
				
			||||||
	return &replicaSets{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
		ns:     namespace,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a replicaSet and creates it.  Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *replicaSets) Create(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSet{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		Body(replicaSet).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a replicaSet and updates it. Returns the server's representation of the replicaSet, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *replicaSets) Update(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSet{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		Name(replicaSet.Name).
 | 
					 | 
				
			||||||
		Body(replicaSet).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *replicaSets) UpdateStatus(replicaSet *v1beta1.ReplicaSet) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSet{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		Name(replicaSet.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(replicaSet).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the replicaSet and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *replicaSets) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *replicaSets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the replicaSet, and returns the corresponding replicaSet object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *replicaSets) Get(name string) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSet{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of ReplicaSets that match those selectors.
 | 
					 | 
				
			||||||
func (c *replicaSets) List(opts api.ListOptions) (result *v1beta1.ReplicaSetList, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSetList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested replicaSets.
 | 
					 | 
				
			||||||
func (c *replicaSets) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched replicaSet.
 | 
					 | 
				
			||||||
func (c *replicaSets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.ReplicaSet, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ReplicaSet{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Namespace(c.ns).
 | 
					 | 
				
			||||||
		Resource("replicasets").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,30 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "cluster.go",
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "federation_client.go",
 | 
					 | 
				
			||||||
        "generated_expansion.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/apimachinery/registered:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/runtime/serializer:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,154 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ClustersGetter has a method to return a ClusterInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type ClustersGetter interface {
 | 
					 | 
				
			||||||
	Clusters() ClusterInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// ClusterInterface has methods to work with Cluster resources.
 | 
					 | 
				
			||||||
type ClusterInterface interface {
 | 
					 | 
				
			||||||
	Create(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	Update(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	UpdateStatus(*v1beta1.Cluster) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	Delete(name string, options *api.DeleteOptions) error
 | 
					 | 
				
			||||||
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
 | 
					 | 
				
			||||||
	Get(name string) (*v1beta1.Cluster, error)
 | 
					 | 
				
			||||||
	List(opts api.ListOptions) (*v1beta1.ClusterList, error)
 | 
					 | 
				
			||||||
	Watch(opts api.ListOptions) (watch.Interface, error)
 | 
					 | 
				
			||||||
	Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error)
 | 
					 | 
				
			||||||
	ClusterExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// clusters implements ClusterInterface
 | 
					 | 
				
			||||||
type clusters struct {
 | 
					 | 
				
			||||||
	client *FederationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newClusters returns a Clusters
 | 
					 | 
				
			||||||
func newClusters(c *FederationClient) *clusters {
 | 
					 | 
				
			||||||
	return &clusters{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Create takes the representation of a cluster and creates it.  Returns the server's representation of the cluster, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(cluster.Name).
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *clusters) UpdateStatus(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Put().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(cluster.Name).
 | 
					 | 
				
			||||||
		SubResource("status").
 | 
					 | 
				
			||||||
		Body(cluster).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Delete takes name of the cluster and deletes it. Returns an error if one occurs.
 | 
					 | 
				
			||||||
func (c *clusters) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// DeleteCollection deletes a collection of objects.
 | 
					 | 
				
			||||||
func (c *clusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	return c.client.Delete().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&listOptions, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Body(options).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Error()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any.
 | 
					 | 
				
			||||||
func (c *clusters) Get(name string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// List takes label and field selectors, and returns the list of Clusters that match those selectors.
 | 
					 | 
				
			||||||
func (c *clusters) List(opts api.ListOptions) (result *v1beta1.ClusterList, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.ClusterList{}
 | 
					 | 
				
			||||||
	err = c.client.Get().
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested clusters.
 | 
					 | 
				
			||||||
func (c *clusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.client.Get().
 | 
					 | 
				
			||||||
		Prefix("watch").
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		VersionedParams(&opts, api.ParameterCodec).
 | 
					 | 
				
			||||||
		Watch()
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched cluster.
 | 
					 | 
				
			||||||
func (c *clusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	result = &v1beta1.Cluster{}
 | 
					 | 
				
			||||||
	err = c.client.Patch(pt).
 | 
					 | 
				
			||||||
		Resource("clusters").
 | 
					 | 
				
			||||||
		SubResource(subresources...).
 | 
					 | 
				
			||||||
		Name(name).
 | 
					 | 
				
			||||||
		Body(data).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
@@ -1,31 +0,0 @@
 | 
				
			|||||||
package(default_visibility = ["//visibility:public"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
licenses(["notice"])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
load(
 | 
					 | 
				
			||||||
    "@io_bazel_rules_go//go:def.bzl",
 | 
					 | 
				
			||||||
    "go_binary",
 | 
					 | 
				
			||||||
    "go_library",
 | 
					 | 
				
			||||||
    "go_test",
 | 
					 | 
				
			||||||
    "cgo_library",
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
go_library(
 | 
					 | 
				
			||||||
    name = "go_default_library",
 | 
					 | 
				
			||||||
    srcs = [
 | 
					 | 
				
			||||||
        "doc.go",
 | 
					 | 
				
			||||||
        "fake_cluster.go",
 | 
					 | 
				
			||||||
        "fake_federation_client.go",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
    tags = ["automanaged"],
 | 
					 | 
				
			||||||
    deps = [
 | 
					 | 
				
			||||||
        "//federation/apis/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/api/unversioned:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/restclient:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/client/testing/core:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/labels:go_default_library",
 | 
					 | 
				
			||||||
        "//pkg/watch:go_default_library",
 | 
					 | 
				
			||||||
    ],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=federation_release_1_4 --clientset-path=k8s.io/kubernetes/federation/client/clientset_generated --included-types-overrides=[api/v1/Service,api/v1/Namespace,extensions/v1beta1/ReplicaSet,api/v1/Secret,extensions/v1beta1/Ingress,api/v1/Event] --input=[../../federation/apis/federation/v1beta1,api/v1,extensions/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,118 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/apis/federation/v1beta1"
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	labels "k8s.io/kubernetes/pkg/labels"
 | 
					 | 
				
			||||||
	watch "k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeClusters implements ClusterInterface
 | 
					 | 
				
			||||||
type FakeClusters struct {
 | 
					 | 
				
			||||||
	Fake *FakeFederation
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var clustersResource = unversioned.GroupVersionResource{Group: "federation", Version: "v1beta1", Resource: "clusters"}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Create(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootCreateAction(clustersResource, cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Update(cluster *v1beta1.Cluster) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateAction(clustersResource, cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) UpdateStatus(cluster *v1beta1.Cluster) (*v1beta1.Cluster, error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootUpdateSubresourceAction(clustersResource, "status", cluster), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Delete(name string, options *api.DeleteOptions) error {
 | 
					 | 
				
			||||||
	_, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootDeleteAction(clustersResource, name), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
 | 
					 | 
				
			||||||
	action := core.NewRootDeleteCollectionAction(clustersResource, listOptions)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_, err := c.Fake.Invokes(action, &v1beta1.ClusterList{})
 | 
					 | 
				
			||||||
	return err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) Get(name string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootGetAction(clustersResource, name), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeClusters) List(opts api.ListOptions) (result *v1beta1.ClusterList, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootListAction(clustersResource, opts), &v1beta1.ClusterList{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	label := opts.LabelSelector
 | 
					 | 
				
			||||||
	if label == nil {
 | 
					 | 
				
			||||||
		label = labels.Everything()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	list := &v1beta1.ClusterList{}
 | 
					 | 
				
			||||||
	for _, item := range obj.(*v1beta1.ClusterList).Items {
 | 
					 | 
				
			||||||
		if label.Matches(labels.Set(item.Labels)) {
 | 
					 | 
				
			||||||
			list.Items = append(list.Items, item)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return list, err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Watch returns a watch.Interface that watches the requested clusters.
 | 
					 | 
				
			||||||
func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error) {
 | 
					 | 
				
			||||||
	return c.Fake.
 | 
					 | 
				
			||||||
		InvokesWatch(core.NewRootWatchAction(clustersResource, opts))
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Patch applies the patch and returns the patched cluster.
 | 
					 | 
				
			||||||
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.Cluster, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.
 | 
					 | 
				
			||||||
		Invokes(core.NewRootPatchSubresourceAction(clustersResource, name, data, subresources...), &v1beta1.Cluster{})
 | 
					 | 
				
			||||||
	if obj == nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return obj.(*v1beta1.Cluster), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/federation/client/clientset_generated/federation_release_1_4/typed/federation/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeFederation struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeFederation) Clusters() v1beta1.ClusterInterface {
 | 
					 | 
				
			||||||
	return &FakeClusters{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeFederation) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FederationInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	ClustersGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FederationClient is used to interact with features provided by the Federation group.
 | 
					 | 
				
			||||||
type FederationClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FederationClient) Clusters() ClusterInterface {
 | 
					 | 
				
			||||||
	return newClusters(c)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new FederationClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*FederationClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &FederationClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new FederationClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *FederationClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new FederationClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *FederationClient {
 | 
					 | 
				
			||||||
	return &FederationClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if federation group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("federation")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FederationClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,19 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type ClusterExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,260 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package release_1_4
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"github.com/golang/glog"
 | 
					 | 
				
			||||||
	v1alpha1apps "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/apps/v1alpha1"
 | 
					 | 
				
			||||||
	v1beta1authentication "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authentication/v1beta1"
 | 
					 | 
				
			||||||
	v1beta1authorization "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1"
 | 
					 | 
				
			||||||
	v1autoscaling "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1"
 | 
					 | 
				
			||||||
	v1batch "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/batch/v1"
 | 
					 | 
				
			||||||
	v1alpha1certificates "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/certificates/v1alpha1"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/core/v1"
 | 
					 | 
				
			||||||
	v1beta1extensions "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/extensions/v1beta1"
 | 
					 | 
				
			||||||
	v1alpha1policy "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/policy/v1alpha1"
 | 
					 | 
				
			||||||
	v1alpha1rbac "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/rbac/v1alpha1"
 | 
					 | 
				
			||||||
	v1beta1storage "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/storage/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	discovery "k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/util/flowcontrol"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type Interface interface {
 | 
					 | 
				
			||||||
	Discovery() discovery.DiscoveryInterface
 | 
					 | 
				
			||||||
	Core() v1core.CoreInterface
 | 
					 | 
				
			||||||
	Apps() v1alpha1apps.AppsInterface
 | 
					 | 
				
			||||||
	Authentication() v1beta1authentication.AuthenticationInterface
 | 
					 | 
				
			||||||
	Authorization() v1beta1authorization.AuthorizationInterface
 | 
					 | 
				
			||||||
	Autoscaling() v1autoscaling.AutoscalingInterface
 | 
					 | 
				
			||||||
	Batch() v1batch.BatchInterface
 | 
					 | 
				
			||||||
	Certificates() v1alpha1certificates.CertificatesInterface
 | 
					 | 
				
			||||||
	Extensions() v1beta1extensions.ExtensionsInterface
 | 
					 | 
				
			||||||
	Policy() v1alpha1policy.PolicyInterface
 | 
					 | 
				
			||||||
	Rbac() v1alpha1rbac.RbacInterface
 | 
					 | 
				
			||||||
	Storage() v1beta1storage.StorageInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset contains the clients for groups. Each group has exactly one
 | 
					 | 
				
			||||||
// version included in a Clientset.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	*discovery.DiscoveryClient
 | 
					 | 
				
			||||||
	*v1core.CoreClient
 | 
					 | 
				
			||||||
	*v1alpha1apps.AppsClient
 | 
					 | 
				
			||||||
	*v1beta1authentication.AuthenticationClient
 | 
					 | 
				
			||||||
	*v1beta1authorization.AuthorizationClient
 | 
					 | 
				
			||||||
	*v1autoscaling.AutoscalingClient
 | 
					 | 
				
			||||||
	*v1batch.BatchClient
 | 
					 | 
				
			||||||
	*v1alpha1certificates.CertificatesClient
 | 
					 | 
				
			||||||
	*v1beta1extensions.ExtensionsClient
 | 
					 | 
				
			||||||
	*v1alpha1policy.PolicyClient
 | 
					 | 
				
			||||||
	*v1alpha1rbac.RbacClient
 | 
					 | 
				
			||||||
	*v1beta1storage.StorageClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.CoreClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Apps retrieves the AppsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Apps() v1alpha1apps.AppsInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.AppsClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Authentication retrieves the AuthenticationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Authentication() v1beta1authentication.AuthenticationInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.AuthenticationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Authorization retrieves the AuthorizationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Authorization() v1beta1authorization.AuthorizationInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.AuthorizationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Autoscaling retrieves the AutoscalingClient
 | 
					 | 
				
			||||||
func (c *Clientset) Autoscaling() v1autoscaling.AutoscalingInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.AutoscalingClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Batch retrieves the BatchClient
 | 
					 | 
				
			||||||
func (c *Clientset) Batch() v1batch.BatchInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.BatchClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Certificates retrieves the CertificatesClient
 | 
					 | 
				
			||||||
func (c *Clientset) Certificates() v1alpha1certificates.CertificatesInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.CertificatesClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Extensions retrieves the ExtensionsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.ExtensionsClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Policy retrieves the PolicyClient
 | 
					 | 
				
			||||||
func (c *Clientset) Policy() v1alpha1policy.PolicyInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.PolicyClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Rbac retrieves the RbacClient
 | 
					 | 
				
			||||||
func (c *Clientset) Rbac() v1alpha1rbac.RbacInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RbacClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Storage retrieves the StorageClient
 | 
					 | 
				
			||||||
func (c *Clientset) Storage() v1beta1storage.StorageInterface {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.StorageClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Discovery retrieves the DiscoveryClient
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return c.DiscoveryClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new Clientset for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*Clientset, error) {
 | 
					 | 
				
			||||||
	configShallowCopy := *c
 | 
					 | 
				
			||||||
	if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 {
 | 
					 | 
				
			||||||
		configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	var err error
 | 
					 | 
				
			||||||
	clientset.CoreClient, err = v1core.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.AppsClient, err = v1alpha1apps.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.AuthenticationClient, err = v1beta1authentication.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.AuthorizationClient, err = v1beta1authorization.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.AutoscalingClient, err = v1autoscaling.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.BatchClient, err = v1batch.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.CertificatesClient, err = v1alpha1certificates.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient, err = v1beta1extensions.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.PolicyClient, err = v1alpha1policy.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.RbacClient, err = v1alpha1rbac.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	clientset.StorageClient, err = v1beta1storage.NewForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		glog.Errorf("failed to create the DiscoveryClient: %v", err)
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &clientset, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new Clientset for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.CoreClient = v1core.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.AppsClient = v1alpha1apps.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.AuthenticationClient = v1beta1authentication.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.AuthorizationClient = v1beta1authorization.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.AutoscalingClient = v1autoscaling.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.BatchClient = v1batch.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.CertificatesClient = v1alpha1certificates.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient = v1beta1extensions.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.PolicyClient = v1alpha1policy.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.RbacClient = v1alpha1rbac.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
	clientset.StorageClient = v1beta1storage.NewForConfigOrDie(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new Clientset for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *Clientset {
 | 
					 | 
				
			||||||
	var clientset Clientset
 | 
					 | 
				
			||||||
	clientset.CoreClient = v1core.New(c)
 | 
					 | 
				
			||||||
	clientset.AppsClient = v1alpha1apps.New(c)
 | 
					 | 
				
			||||||
	clientset.AuthenticationClient = v1beta1authentication.New(c)
 | 
					 | 
				
			||||||
	clientset.AuthorizationClient = v1beta1authorization.New(c)
 | 
					 | 
				
			||||||
	clientset.AutoscalingClient = v1autoscaling.New(c)
 | 
					 | 
				
			||||||
	clientset.BatchClient = v1batch.New(c)
 | 
					 | 
				
			||||||
	clientset.CertificatesClient = v1alpha1certificates.New(c)
 | 
					 | 
				
			||||||
	clientset.ExtensionsClient = v1beta1extensions.New(c)
 | 
					 | 
				
			||||||
	clientset.PolicyClient = v1alpha1policy.New(c)
 | 
					 | 
				
			||||||
	clientset.RbacClient = v1alpha1rbac.New(c)
 | 
					 | 
				
			||||||
	clientset.StorageClient = v1beta1storage.New(c)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	clientset.DiscoveryClient = discovery.NewDiscoveryClient(c)
 | 
					 | 
				
			||||||
	return &clientset
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated clientset.
 | 
					 | 
				
			||||||
package release_1_4
 | 
					 | 
				
			||||||
@@ -1,138 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	clientset "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4"
 | 
					 | 
				
			||||||
	v1alpha1apps "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/apps/v1alpha1"
 | 
					 | 
				
			||||||
	fakev1alpha1apps "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/apps/v1alpha1/fake"
 | 
					 | 
				
			||||||
	v1beta1authentication "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authentication/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1authentication "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authentication/v1beta1/fake"
 | 
					 | 
				
			||||||
	v1beta1authorization "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1authorization "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1/fake"
 | 
					 | 
				
			||||||
	v1autoscaling "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1"
 | 
					 | 
				
			||||||
	fakev1autoscaling "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1/fake"
 | 
					 | 
				
			||||||
	v1batch "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/batch/v1"
 | 
					 | 
				
			||||||
	fakev1batch "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/batch/v1/fake"
 | 
					 | 
				
			||||||
	v1alpha1certificates "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/certificates/v1alpha1"
 | 
					 | 
				
			||||||
	fakev1alpha1certificates "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/certificates/v1alpha1/fake"
 | 
					 | 
				
			||||||
	v1core "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/core/v1"
 | 
					 | 
				
			||||||
	fakev1core "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/core/v1/fake"
 | 
					 | 
				
			||||||
	v1beta1extensions "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/extensions/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1extensions "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/extensions/v1beta1/fake"
 | 
					 | 
				
			||||||
	v1alpha1policy "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/policy/v1alpha1"
 | 
					 | 
				
			||||||
	fakev1alpha1policy "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/policy/v1alpha1/fake"
 | 
					 | 
				
			||||||
	v1alpha1rbac "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/rbac/v1alpha1"
 | 
					 | 
				
			||||||
	fakev1alpha1rbac "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/rbac/v1alpha1/fake"
 | 
					 | 
				
			||||||
	v1beta1storage "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/storage/v1beta1"
 | 
					 | 
				
			||||||
	fakev1beta1storage "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/storage/v1beta1/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/typed/discovery"
 | 
					 | 
				
			||||||
	fakediscovery "k8s.io/kubernetes/pkg/client/typed/discovery/fake"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/runtime"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/watch"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewSimpleClientset returns a clientset that will respond with the provided objects.
 | 
					 | 
				
			||||||
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
 | 
					 | 
				
			||||||
// without applying any validations and/or defaults. It shouldn't be considered a replacement
 | 
					 | 
				
			||||||
// for a real clientset and is mostly useful in simple unit tests.
 | 
					 | 
				
			||||||
func NewSimpleClientset(objects ...runtime.Object) *Clientset {
 | 
					 | 
				
			||||||
	o := core.NewObjectTracker(api.Scheme, api.Codecs.UniversalDecoder())
 | 
					 | 
				
			||||||
	for _, obj := range objects {
 | 
					 | 
				
			||||||
		if err := o.Add(obj); err != nil {
 | 
					 | 
				
			||||||
			panic(err)
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr := core.Fake{}
 | 
					 | 
				
			||||||
	fakePtr.AddReactor("*", "*", core.ObjectReaction(o, registered.RESTMapper()))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	fakePtr.AddWatchReactor("*", core.DefaultWatchReactor(watch.NewFake(), nil))
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return &Clientset{fakePtr}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Clientset implements clientset.Interface. Meant to be embedded into a
 | 
					 | 
				
			||||||
// struct to get a default implementation. This makes faking out just the method
 | 
					 | 
				
			||||||
// you want to test easier.
 | 
					 | 
				
			||||||
type Clientset struct {
 | 
					 | 
				
			||||||
	core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *Clientset) Discovery() discovery.DiscoveryInterface {
 | 
					 | 
				
			||||||
	return &fakediscovery.FakeDiscovery{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
var _ clientset.Interface = &Clientset{}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Core retrieves the CoreClient
 | 
					 | 
				
			||||||
func (c *Clientset) Core() v1core.CoreInterface {
 | 
					 | 
				
			||||||
	return &fakev1core.FakeCore{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Apps retrieves the AppsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Apps() v1alpha1apps.AppsInterface {
 | 
					 | 
				
			||||||
	return &fakev1alpha1apps.FakeApps{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Authentication retrieves the AuthenticationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Authentication() v1beta1authentication.AuthenticationInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1authentication.FakeAuthentication{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Authorization retrieves the AuthorizationClient
 | 
					 | 
				
			||||||
func (c *Clientset) Authorization() v1beta1authorization.AuthorizationInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1authorization.FakeAuthorization{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Autoscaling retrieves the AutoscalingClient
 | 
					 | 
				
			||||||
func (c *Clientset) Autoscaling() v1autoscaling.AutoscalingInterface {
 | 
					 | 
				
			||||||
	return &fakev1autoscaling.FakeAutoscaling{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Batch retrieves the BatchClient
 | 
					 | 
				
			||||||
func (c *Clientset) Batch() v1batch.BatchInterface {
 | 
					 | 
				
			||||||
	return &fakev1batch.FakeBatch{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Certificates retrieves the CertificatesClient
 | 
					 | 
				
			||||||
func (c *Clientset) Certificates() v1alpha1certificates.CertificatesInterface {
 | 
					 | 
				
			||||||
	return &fakev1alpha1certificates.FakeCertificates{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Extensions retrieves the ExtensionsClient
 | 
					 | 
				
			||||||
func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1extensions.FakeExtensions{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Policy retrieves the PolicyClient
 | 
					 | 
				
			||||||
func (c *Clientset) Policy() v1alpha1policy.PolicyInterface {
 | 
					 | 
				
			||||||
	return &fakev1alpha1policy.FakePolicy{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Rbac retrieves the RbacClient
 | 
					 | 
				
			||||||
func (c *Clientset) Rbac() v1alpha1rbac.RbacInterface {
 | 
					 | 
				
			||||||
	return &fakev1alpha1rbac.FakeRbac{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Storage retrieves the StorageClient
 | 
					 | 
				
			||||||
func (c *Clientset) Storage() v1beta1storage.StorageInterface {
 | 
					 | 
				
			||||||
	return &fakev1beta1storage.FakeStorage{Fake: &c.Fake}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated fake clientset.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,41 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package release_1_4
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// These imports are the API groups the client will support.
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	"fmt"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/api/install"
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/apps/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/authentication/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/authorization/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/autoscaling/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/batch/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/certificates/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/extensions/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/policy/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/rbac/install"
 | 
					 | 
				
			||||||
	_ "k8s.io/kubernetes/pkg/apis/storage/install"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func init() {
 | 
					 | 
				
			||||||
	if missingVersions := registered.ValidateEnvRequestedVersions(); len(missingVersions) != 0 {
 | 
					 | 
				
			||||||
		panic(fmt.Sprintf("KUBE_API_VERSIONS contains versions that are not installed: %q.", missingVersions))
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,91 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1alpha1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type AppsInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// AppsClient is used to interact with features provided by the Apps group.
 | 
					 | 
				
			||||||
type AppsClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new AppsClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*AppsClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &AppsClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new AppsClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *AppsClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new AppsClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *AppsClient {
 | 
					 | 
				
			||||||
	return &AppsClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if apps group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("apps")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *AppsClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1alpha1
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,32 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeApps struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeApps) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,19 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1alpha1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type PetSetExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type AuthenticationInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	TokenReviewsGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// AuthenticationClient is used to interact with features provided by the Authentication group.
 | 
					 | 
				
			||||||
type AuthenticationClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *AuthenticationClient) TokenReviews() TokenReviewInterface {
 | 
					 | 
				
			||||||
	return newTokenReviews(c)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new AuthenticationClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*AuthenticationClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &AuthenticationClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new AuthenticationClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *AuthenticationClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new AuthenticationClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *AuthenticationClient {
 | 
					 | 
				
			||||||
	return &AuthenticationClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if authentication group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("authentication.k8s.io")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *AuthenticationClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authentication/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeAuthentication struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeAuthentication) TokenReviews() v1beta1.TokenReviewInterface {
 | 
					 | 
				
			||||||
	return &FakeTokenReviews{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeAuthentication) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,22 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeTokenReviews implements TokenReviewInterface
 | 
					 | 
				
			||||||
type FakeTokenReviews struct {
 | 
					 | 
				
			||||||
	Fake *FakeAuthentication
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,19 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type TokenReviewExpansion interface{}
 | 
					 | 
				
			||||||
@@ -1,40 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// TokenReviewsGetter has a method to return a TokenReviewInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type TokenReviewsGetter interface {
 | 
					 | 
				
			||||||
	TokenReviews() TokenReviewInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// TokenReviewInterface has methods to work with TokenReview resources.
 | 
					 | 
				
			||||||
type TokenReviewInterface interface {
 | 
					 | 
				
			||||||
	TokenReviewExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// tokenReviews implements TokenReviewInterface
 | 
					 | 
				
			||||||
type tokenReviews struct {
 | 
					 | 
				
			||||||
	client *AuthenticationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newTokenReviews returns a TokenReviews
 | 
					 | 
				
			||||||
func newTokenReviews(c *AuthenticationClient) *tokenReviews {
 | 
					 | 
				
			||||||
	return &tokenReviews{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type AuthorizationInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	SubjectAccessReviewsGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// AuthorizationClient is used to interact with features provided by the Authorization group.
 | 
					 | 
				
			||||||
type AuthorizationClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface {
 | 
					 | 
				
			||||||
	return newSubjectAccessReviews(c)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new AuthorizationClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*AuthorizationClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &AuthorizationClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new AuthorizationClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *AuthorizationClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new AuthorizationClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *AuthorizationClient {
 | 
					 | 
				
			||||||
	return &AuthorizationClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if authorization group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("authorization.k8s.io")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *AuthorizationClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1beta1 "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeAuthorization struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeAuthorization) SubjectAccessReviews() v1beta1.SubjectAccessReviewInterface {
 | 
					 | 
				
			||||||
	return &FakeSubjectAccessReviews{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeAuthorization) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,22 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// FakeSubjectAccessReviews implements SubjectAccessReviewInterface
 | 
					 | 
				
			||||||
type FakeSubjectAccessReviews struct {
 | 
					 | 
				
			||||||
	Fake *FakeAuthorization
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,28 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	authorizationapi "k8s.io/kubernetes/pkg/apis/authorization/v1beta1"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	"k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeSubjectAccessReviews) Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) {
 | 
					 | 
				
			||||||
	obj, err := c.Fake.Invokes(core.NewRootCreateAction(authorizationapi.SchemeGroupVersion.WithResource("subjectaccessreviews"), sar), &authorizationapi.SubjectAccessReview{})
 | 
					 | 
				
			||||||
	return obj.(*authorizationapi.SubjectAccessReview), err
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,17 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
@@ -1,40 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// SubjectAccessReviewsGetter has a method to return a SubjectAccessReviewInterface.
 | 
					 | 
				
			||||||
// A group's client should implement this interface.
 | 
					 | 
				
			||||||
type SubjectAccessReviewsGetter interface {
 | 
					 | 
				
			||||||
	SubjectAccessReviews() SubjectAccessReviewInterface
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// SubjectAccessReviewInterface has methods to work with SubjectAccessReview resources.
 | 
					 | 
				
			||||||
type SubjectAccessReviewInterface interface {
 | 
					 | 
				
			||||||
	SubjectAccessReviewExpansion
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// subjectAccessReviews implements SubjectAccessReviewInterface
 | 
					 | 
				
			||||||
type subjectAccessReviews struct {
 | 
					 | 
				
			||||||
	client *AuthorizationClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// newSubjectAccessReviews returns a SubjectAccessReviews
 | 
					 | 
				
			||||||
func newSubjectAccessReviews(c *AuthorizationClient) *subjectAccessReviews {
 | 
					 | 
				
			||||||
	return &subjectAccessReviews{
 | 
					 | 
				
			||||||
		client: c,
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,36 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1beta1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	authorizationapi "k8s.io/kubernetes/pkg/apis/authorization/v1beta1"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// The SubjectAccessReviewExpansion interface allows manually adding extra methods to the AuthorizationInterface.
 | 
					 | 
				
			||||||
type SubjectAccessReviewExpansion interface {
 | 
					 | 
				
			||||||
	Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *subjectAccessReviews) Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) {
 | 
					 | 
				
			||||||
	result = &authorizationapi.SubjectAccessReview{}
 | 
					 | 
				
			||||||
	err = c.client.Post().
 | 
					 | 
				
			||||||
		Resource("subjectaccessreviews").
 | 
					 | 
				
			||||||
		Body(sar).
 | 
					 | 
				
			||||||
		Do().
 | 
					 | 
				
			||||||
		Into(result)
 | 
					 | 
				
			||||||
	return
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,96 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	api "k8s.io/kubernetes/pkg/api"
 | 
					 | 
				
			||||||
	registered "k8s.io/kubernetes/pkg/apimachinery/registered"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	serializer "k8s.io/kubernetes/pkg/runtime/serializer"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type AutoscalingInterface interface {
 | 
					 | 
				
			||||||
	GetRESTClient() *restclient.RESTClient
 | 
					 | 
				
			||||||
	HorizontalPodAutoscalersGetter
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// AutoscalingClient is used to interact with features provided by the Autoscaling group.
 | 
					 | 
				
			||||||
type AutoscalingClient struct {
 | 
					 | 
				
			||||||
	*restclient.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *AutoscalingClient) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface {
 | 
					 | 
				
			||||||
	return newHorizontalPodAutoscalers(c, namespace)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfig creates a new AutoscalingClient for the given config.
 | 
					 | 
				
			||||||
func NewForConfig(c *restclient.Config) (*AutoscalingClient, error) {
 | 
					 | 
				
			||||||
	config := *c
 | 
					 | 
				
			||||||
	if err := setConfigDefaults(&config); err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	client, err := restclient.RESTClientFor(&config)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return nil, err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return &AutoscalingClient{client}, nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// NewForConfigOrDie creates a new AutoscalingClient for the given config and
 | 
					 | 
				
			||||||
// panics if there is an error in the config.
 | 
					 | 
				
			||||||
func NewForConfigOrDie(c *restclient.Config) *AutoscalingClient {
 | 
					 | 
				
			||||||
	client, err := NewForConfig(c)
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		panic(err)
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return client
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// New creates a new AutoscalingClient for the given RESTClient.
 | 
					 | 
				
			||||||
func New(c *restclient.RESTClient) *AutoscalingClient {
 | 
					 | 
				
			||||||
	return &AutoscalingClient{c}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func setConfigDefaults(config *restclient.Config) error {
 | 
					 | 
				
			||||||
	// if autoscaling group is not registered, return an error
 | 
					 | 
				
			||||||
	g, err := registered.Group("autoscaling")
 | 
					 | 
				
			||||||
	if err != nil {
 | 
					 | 
				
			||||||
		return err
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	config.APIPath = "/apis"
 | 
					 | 
				
			||||||
	if config.UserAgent == "" {
 | 
					 | 
				
			||||||
		config.UserAgent = restclient.DefaultKubernetesUserAgent()
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO: Unconditionally set the config.Version, until we fix the config.
 | 
					 | 
				
			||||||
	//if config.Version == "" {
 | 
					 | 
				
			||||||
	copyGroupVersion := g.GroupVersion
 | 
					 | 
				
			||||||
	config.GroupVersion = ©GroupVersion
 | 
					 | 
				
			||||||
	//}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *AutoscalingClient) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	if c == nil {
 | 
					 | 
				
			||||||
		return nil
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return c.RESTClient
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package has the automatically generated typed clients.
 | 
					 | 
				
			||||||
package v1
 | 
					 | 
				
			||||||
@@ -1,20 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,apps/v1alpha1,authentication/v1beta1,authorization/v1beta1,autoscaling/v1,batch/v1,certificates/v1alpha1,extensions/v1beta1,policy/v1alpha1,rbac/v1alpha1,storage/v1beta1]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Package fake has the automatically generated clients.
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
@@ -1,37 +0,0 @@
 | 
				
			|||||||
/*
 | 
					 | 
				
			||||||
Copyright 2016 The Kubernetes Authors.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
limitations under the License.
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
package fake
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import (
 | 
					 | 
				
			||||||
	v1 "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1"
 | 
					 | 
				
			||||||
	restclient "k8s.io/kubernetes/pkg/client/restclient"
 | 
					 | 
				
			||||||
	core "k8s.io/kubernetes/pkg/client/testing/core"
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type FakeAutoscaling struct {
 | 
					 | 
				
			||||||
	*core.Fake
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
func (c *FakeAutoscaling) HorizontalPodAutoscalers(namespace string) v1.HorizontalPodAutoscalerInterface {
 | 
					 | 
				
			||||||
	return &FakeHorizontalPodAutoscalers{c, namespace}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// GetRESTClient returns a RESTClient that is used to communicate
 | 
					 | 
				
			||||||
// with API server by this client implementation.
 | 
					 | 
				
			||||||
func (c *FakeAutoscaling) GetRESTClient() *restclient.RESTClient {
 | 
					 | 
				
			||||||
	return nil
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user