Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
31438712
Unverified
Commit
31438712
authored
Oct 16, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69269 from miguelbernadi/fix-golint-issues-68026
Fix undocumented golint errors
parents
1e4ad048
acf78cd6
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
32 additions
and
0 deletions
+32
-0
factory_interfaces.go
.../internalversion/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
.../internalversion/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...ent-go/informers/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
.../internalversion/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factoryinterface.go
...generator/cmd/informer-gen/generators/factoryinterface.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
.../internalversion/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
.../internalversion/internalinterfaces/factory_interfaces.go
+2
-0
factory_interfaces.go
...externalversions/internalinterfaces/factory_interfaces.go
+2
-0
No files found.
pkg/client/informers/informers_generated/internalversion/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
internalclientset
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
internalclientset
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
)
)
// NewInformerFunc takes internalclientset.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
cache
"k8s.io/client-go/tools/cache"
cache
"k8s.io/client-go/tools/cache"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
cache
"k8s.io/client-go/tools/cache"
cache
"k8s.io/client-go/tools/cache"
)
)
// NewInformerFunc takes clientset.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
clientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
clientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/apiextensions-apiserver/pkg/client/informers/internalversion/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
cache
"k8s.io/client-go/tools/cache"
cache
"k8s.io/client-go/tools/cache"
)
)
// NewInformerFunc takes internalclientset.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/client-go/informers/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
cache
"k8s.io/client-go/tools/cache"
cache
"k8s.io/client-go/tools/cache"
)
)
// NewInformerFunc takes kubernetes.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
kubernetes
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
kubernetes
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/code-generator/_examples/MixedCase/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/code-generator/_examples/MixedCase/clientset/versioned"
versioned
"k8s.io/code-generator/_examples/MixedCase/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/code-generator/_examples/apiserver/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/code-generator/_examples/apiserver/clientset/versioned"
versioned
"k8s.io/code-generator/_examples/apiserver/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/code-generator/_examples/apiserver/informers/internalversion/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
internalversion
"k8s.io/code-generator/_examples/apiserver/clientset/internalversion"
internalversion
"k8s.io/code-generator/_examples/apiserver/clientset/internalversion"
)
)
// NewInformerFunc takes internalversion.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
internalversion
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
internalversion
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/code-generator/_examples/crd/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/code-generator/_examples/crd/clientset/versioned"
versioned
"k8s.io/code-generator/_examples/crd/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/code-generator/cmd/informer-gen/generators/factoryinterface.go
View file @
31438712
...
@@ -76,6 +76,7 @@ func (g *factoryInterfaceGenerator) GenerateType(c *generator.Context, t *types.
...
@@ -76,6 +76,7 @@ func (g *factoryInterfaceGenerator) GenerateType(c *generator.Context, t *types.
}
}
var
externalSharedInformerFactoryInterface
=
`
var
externalSharedInformerFactoryInterface
=
`
// NewInformerFunc takes {{.clientSetPackage|raw}} and {{.timeDuration|raw}} to return a SharedIndexInformer.
type NewInformerFunc func({{.clientSetPackage|raw}}, {{.timeDuration|raw}}) cache.SharedIndexInformer
type NewInformerFunc func({{.clientSetPackage|raw}}, {{.timeDuration|raw}}) cache.SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -84,5 +85,6 @@ type SharedInformerFactory interface {
...
@@ -84,5 +85,6 @@ type SharedInformerFactory interface {
InformerFor(obj {{.runtimeObject|raw}}, newFunc NewInformerFunc) {{.cacheSharedIndexInformer|raw}}
InformerFor(obj {{.runtimeObject|raw}}, newFunc NewInformerFunc) {{.cacheSharedIndexInformer|raw}}
}
}
// TweakListOptionsFunc is a function that transforms a {{.v1ListOptions|raw}}.
type TweakListOptionsFunc func(*{{.v1ListOptions|raw}})
type TweakListOptionsFunc func(*{{.v1ListOptions|raw}})
`
`
staging/src/k8s.io/csi-api/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/csi-api/pkg/client/clientset/versioned"
versioned
"k8s.io/csi-api/pkg/client/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/kube-aggregator/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
clientset
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset"
clientset
"k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset"
)
)
// NewInformerFunc takes clientset.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
clientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
clientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/kube-aggregator/pkg/client/informers/internalversion/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
internalclientset
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset"
internalclientset
"k8s.io/kube-aggregator/pkg/client/clientset_generated/internalclientset"
)
)
// NewInformerFunc takes internalclientset.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
internalclientset
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/sample-apiserver/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/sample-apiserver/pkg/client/clientset/versioned"
versioned
"k8s.io/sample-apiserver/pkg/client/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/sample-apiserver/pkg/client/informers/internalversion/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
internalversion
"k8s.io/sample-apiserver/pkg/client/clientset/internalversion"
internalversion
"k8s.io/sample-apiserver/pkg/client/clientset/internalversion"
)
)
// NewInformerFunc takes internalversion.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
internalversion
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
internalversion
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
staging/src/k8s.io/sample-controller/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go
View file @
31438712
...
@@ -27,6 +27,7 @@ import (
...
@@ -27,6 +27,7 @@ import (
versioned
"k8s.io/sample-controller/pkg/client/clientset/versioned"
versioned
"k8s.io/sample-controller/pkg/client/clientset/versioned"
)
)
// NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
type
NewInformerFunc
func
(
versioned
.
Interface
,
time
.
Duration
)
cache
.
SharedIndexInformer
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
// SharedInformerFactory a small interface to allow for adding an informer without an import cycle
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
...
@@ -35,4 +36,5 @@ type SharedInformerFactory interface {
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
InformerFor
(
obj
runtime
.
Object
,
newFunc
NewInformerFunc
)
cache
.
SharedIndexInformer
}
}
// TweakListOptionsFunc is a function that transforms a v1.ListOptions.
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
type
TweakListOptionsFunc
func
(
*
v1
.
ListOptions
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment