Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
update staging client
Signed-off-by: Jess Frazelle <acidburn@google.com>
- Loading branch information
Showing
49 changed files
with
3,242 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
staging/src/k8s.io/client-go/informers/settings/interface.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
Copyright 2017 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 file was automatically generated by informer-gen | ||
|
||
package settings | ||
|
||
import ( | ||
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" | ||
v1alpha1 "k8s.io/client-go/informers/settings/v1alpha1" | ||
) | ||
|
||
// Interface provides access to each of this group's versions. | ||
type Interface interface { | ||
// V1alpha1 provides access to shared informers for resources in V1alpha1. | ||
V1alpha1() v1alpha1.Interface | ||
} | ||
|
||
type group struct { | ||
internalinterfaces.SharedInformerFactory | ||
} | ||
|
||
// New returns a new Interface. | ||
func New(f internalinterfaces.SharedInformerFactory) Interface { | ||
return &group{f} | ||
} | ||
|
||
// V1alpha1 returns a new v1alpha1.Interface. | ||
func (g *group) V1alpha1() v1alpha1.Interface { | ||
return v1alpha1.New(g.SharedInformerFactory) | ||
} |
43 changes: 43 additions & 0 deletions
43
staging/src/k8s.io/client-go/informers/settings/v1alpha1/interface.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright 2017 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 file was automatically generated by informer-gen | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" | ||
) | ||
|
||
// Interface provides access to all the informers in this group version. | ||
type Interface interface { | ||
// PodPresets returns a PodPresetInformer. | ||
PodPresets() PodPresetInformer | ||
} | ||
|
||
type version struct { | ||
internalinterfaces.SharedInformerFactory | ||
} | ||
|
||
// New returns a new Interface. | ||
func New(f internalinterfaces.SharedInformerFactory) Interface { | ||
return &version{f} | ||
} | ||
|
||
// PodPresets returns a PodPresetInformer. | ||
func (v *version) PodPresets() PodPresetInformer { | ||
return &podPresetInformer{factory: v.SharedInformerFactory} | ||
} |
68 changes: 68 additions & 0 deletions
68
staging/src/k8s.io/client-go/informers/settings/v1alpha1/podpreset.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
Copyright 2017 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 file was automatically generated by informer-gen | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
runtime "k8s.io/apimachinery/pkg/runtime" | ||
watch "k8s.io/apimachinery/pkg/watch" | ||
internalinterfaces "k8s.io/client-go/informers/internalinterfaces" | ||
kubernetes "k8s.io/client-go/kubernetes" | ||
v1alpha1 "k8s.io/client-go/listers/settings/v1alpha1" | ||
settings_v1alpha1 "k8s.io/client-go/pkg/apis/settings/v1alpha1" | ||
cache "k8s.io/client-go/tools/cache" | ||
time "time" | ||
) | ||
|
||
// PodPresetInformer provides access to a shared informer and lister for | ||
// PodPresets. | ||
type PodPresetInformer interface { | ||
Informer() cache.SharedIndexInformer | ||
Lister() v1alpha1.PodPresetLister | ||
} | ||
|
||
type podPresetInformer struct { | ||
factory internalinterfaces.SharedInformerFactory | ||
} | ||
|
||
func newPodPresetInformer(client kubernetes.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { | ||
sharedIndexInformer := cache.NewSharedIndexInformer( | ||
&cache.ListWatch{ | ||
ListFunc: func(options v1.ListOptions) (runtime.Object, error) { | ||
return client.SettingsV1alpha1().PodPresets(v1.NamespaceAll).List(options) | ||
}, | ||
WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { | ||
return client.SettingsV1alpha1().PodPresets(v1.NamespaceAll).Watch(options) | ||
}, | ||
}, | ||
&settings_v1alpha1.PodPreset{}, | ||
resyncPeriod, | ||
cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, | ||
) | ||
|
||
return sharedIndexInformer | ||
} | ||
|
||
func (f *podPresetInformer) Informer() cache.SharedIndexInformer { | ||
return f.factory.InformerFor(&settings_v1alpha1.PodPreset{}, newPodPresetInformer) | ||
} | ||
|
||
func (f *podPresetInformer) Lister() v1alpha1.PodPresetLister { | ||
return v1alpha1.NewPodPresetLister(f.Informer().GetIndexer()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
staging/src/k8s.io/client-go/kubernetes/typed/settings/v1alpha1/doc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
Copyright 2017 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 custom arguments. | ||
|
||
// This package has the automatically generated typed clients. | ||
package v1alpha1 |
Oops, something went wrong.