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
919add69
Commit
919add69
authored
Oct 03, 2015
by
qiaolei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some typos and improved comments
parent
9659ab13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cloud.go
pkg/cloudprovider/cloud.go
+6
-6
No files found.
pkg/cloudprovider/cloud.go
View file @
919add69
...
...
@@ -43,7 +43,7 @@ type Interface interface {
// Clusters is an abstract, pluggable interface for clusters of containers.
type
Clusters
interface
{
// List lists the names of the available clusters.
// List
Clusters
lists the names of the available clusters.
ListClusters
()
([]
string
,
error
)
// Master gets back the address (either DNS name or IP address) of the master node for the cluster.
Master
(
clusterName
string
)
(
string
,
error
)
...
...
@@ -110,7 +110,7 @@ type Instances interface {
// AddSSHKeyToAllInstances adds an SSH public key as a legal identity for all instances
// expected format for the key is standard ssh-keygen format: <protocol> <blob>
AddSSHKeyToAllInstances
(
user
string
,
keyData
[]
byte
)
error
//
R
eturns the name of the node we are currently running on
//
CurrentNodeName r
eturns the name of the node we are currently running on
// On most clouds (e.g. GCE) this is the hostname, so we provide the hostname
CurrentNodeName
(
hostname
string
)
(
string
,
error
)
}
...
...
@@ -123,20 +123,20 @@ type Route struct {
// TargetInstance is the name of the instance as specified in routing rules
// for the cloud-provider (in gce: the Instance Name).
TargetInstance
string
// Destination
CIDR is the CIDR format IP range that this routing rule
// DestinationCIDR is the CIDR format IP range that this routing rule
// applies to.
DestinationCIDR
string
}
// Routes is an abstract, pluggable interface for advanced routing rules.
type
Routes
interface
{
// List all managed routes that belong to the specified clusterName
// List
Routes lists
all managed routes that belong to the specified clusterName
ListRoutes
(
clusterName
string
)
([]
*
Route
,
error
)
// Create the described managed route
// Create
Route creates
the described managed route
// route.Name will be ignored, although the cloud-provider may use nameHint
// to create a more user-meaningful name.
CreateRoute
(
clusterName
string
,
nameHint
string
,
route
*
Route
)
error
// Delete the specified managed route
// Delete
Route deletes
the specified managed route
// Route should be as returned by ListRoutes
DeleteRoute
(
clusterName
string
,
route
*
Route
)
error
}
...
...
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