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
962a7b49
Commit
962a7b49
authored
Aug 07, 2015
by
BenTheElder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in pkg/proxy, merge proxy_provider.go and service_port_name.go to types.go
parent
1f6baa65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
34 deletions
+14
-34
service_port_name.go
pkg/proxy/service_port_name.go
+0
-34
types.go
pkg/proxy/types.go
+14
-0
No files found.
pkg/proxy/service_port_name.go
deleted
100644 → 0
View file @
1f6baa65
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
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
proxy
import
(
"fmt"
"k8s.io/kubernetes/pkg/types"
)
// ServicePortName carries a namespace + name + portname. This is the unique
// identfier for a load-balanced service.
type
ServicePortName
struct
{
types
.
NamespacedName
Port
string
}
func
(
spn
ServicePortName
)
String
()
string
{
return
fmt
.
Sprintf
(
"%s:%s"
,
spn
.
NamespacedName
.
String
(),
spn
.
Port
)
}
pkg/proxy/
proxy_provider
.go
→
pkg/proxy/
types
.go
View file @
962a7b49
...
...
@@ -17,7 +17,10 @@ limitations under the License.
package
proxy
import
(
"fmt"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/types"
)
// ProxyProvider is the interface provided by proxier implementations.
...
...
@@ -31,3 +34,14 @@ type ProxyProvider interface {
// It does not return.
SyncLoop
()
}
// ServicePortName carries a namespace + name + portname. This is the unique
// identfier for a load-balanced service.
type
ServicePortName
struct
{
types
.
NamespacedName
Port
string
}
func
(
spn
ServicePortName
)
String
()
string
{
return
fmt
.
Sprintf
(
"%s:%s"
,
spn
.
NamespacedName
.
String
(),
spn
.
Port
)
}
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