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
63820236
Commit
63820236
authored
Feb 12, 2019
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add glue for legacy interface for backward compatibility.
parent
1f2e2e61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
2 deletions
+62
-2
BUILD
staging/src/k8s.io/client-go/discovery/BUILD
+1
-2
BUILD
staging/src/k8s.io/client-go/discovery/cached/BUILD
+31
-0
legacy.go
staging/src/k8s.io/client-go/discovery/cached/legacy.go
+30
-0
No files found.
staging/src/k8s.io/client-go/discovery/BUILD
View file @
63820236
...
...
@@ -42,8 +42,7 @@ filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/client-go/discovery/cached/disk:all-srcs",
"//staging/src/k8s.io/client-go/discovery/cached/memory:all-srcs",
"//staging/src/k8s.io/client-go/discovery/cached:all-srcs",
"//staging/src/k8s.io/client-go/discovery/fake:all-srcs",
],
tags = ["automanaged"],
...
...
staging/src/k8s.io/client-go/discovery/cached/BUILD
0 → 100644
View file @
63820236
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["legacy.go"],
importmap = "k8s.io/kubernetes/vendor/k8s.io/client-go/discovery/cached",
importpath = "k8s.io/client-go/discovery/cached",
visibility = ["//visibility:public"],
deps = [
"//staging/src/k8s.io/client-go/discovery:go_default_library",
"//staging/src/k8s.io/client-go/discovery/cached/memory:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//staging/src/k8s.io/client-go/discovery/cached/disk:all-srcs",
"//staging/src/k8s.io/client-go/discovery/cached/memory:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
staging/src/k8s.io/client-go/discovery/cached/legacy.go
0 → 100644
View file @
63820236
/*
Copyright 2019 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
memory
import
(
"k8s.io/client-go/discovery"
"k8s.io/client-go/discovery/cached/memory"
)
// NewMemCacheClient is DEPRECATED. Use memory.NewMemCacheClient directly.
func
NewMemCacheClient
(
delegate
discovery
.
DiscoveryInterface
)
discovery
.
CachedDiscoveryInterface
{
return
memory
.
NewMemCacheClient
(
delegate
)
}
// ErrCacheNotFound is DEPRECATED. Use memory.ErrCacheNotFound directly.
var
ErrCacheNotFound
=
memory
.
ErrCacheNotFound
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