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
cf75c498
Commit
cf75c498
authored
Aug 25, 2017
by
Josh Horwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change godoc based on feedback from luxas
parent
82a69b28
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
cloud.go
pkg/cloudprovider/cloud.go
+1
-1
aws.go
pkg/cloudprovider/providers/aws/aws.go
+1
-1
azure_instances.go
pkg/cloudprovider/providers/azure/azure_instances.go
+1
-1
fake.go
pkg/cloudprovider/providers/fake/fake.go
+1
-1
gce_instances.go
pkg/cloudprovider/providers/gce/gce_instances.go
+1
-1
openstack_instances.go
pkg/cloudprovider/providers/openstack/openstack_instances.go
+1
-1
ovirt.go
pkg/cloudprovider/providers/ovirt/ovirt.go
+1
-1
photon.go
pkg/cloudprovider/providers/photon/photon.go
+1
-1
rackspace.go
pkg/cloudprovider/providers/rackspace/rackspace.go
+1
-1
vsphere.go
pkg/cloudprovider/providers/vsphere/vsphere.go
+1
-1
No files found.
pkg/cloudprovider/cloud.go
View file @
cf75c498
...
@@ -141,7 +141,7 @@ type Instances interface {
...
@@ -141,7 +141,7 @@ type Instances interface {
// On most clouds (e.g. GCE) this is the hostname, so we provide the hostname
// On most clouds (e.g. GCE) this is the hostname, so we provide the hostname
CurrentNodeName
(
hostname
string
)
(
types
.
NodeName
,
error
)
CurrentNodeName
(
hostname
string
)
(
types
.
NodeName
,
error
)
// InstanceExistsByProviderID returns true if the instance for the given provider id still is running.
// InstanceExistsByProviderID returns true if the instance for the given provider id still is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
}
}
...
...
pkg/cloudprovider/providers/aws/aws.go
View file @
cf75c498
...
@@ -1102,7 +1102,7 @@ func (c *Cloud) ExternalID(nodeName types.NodeName) (string, error) {
...
@@ -1102,7 +1102,7 @@ func (c *Cloud) ExternalID(nodeName types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
c
*
Cloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
c
*
Cloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/azure/azure_instances.go
View file @
cf75c498
...
@@ -88,7 +88,7 @@ func (az *Cloud) ExternalID(name types.NodeName) (string, error) {
...
@@ -88,7 +88,7 @@ func (az *Cloud) ExternalID(name types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
az
*
Cloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
az
*
Cloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/fake/fake.go
View file @
cf75c498
...
@@ -239,7 +239,7 @@ func (f *FakeCloud) InstanceTypeByProviderID(providerID string) (string, error)
...
@@ -239,7 +239,7 @@ func (f *FakeCloud) InstanceTypeByProviderID(providerID string) (string, error)
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
f
*
FakeCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
f
*
FakeCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
f
.
addCall
(
"instance-exists-by-provider-id"
)
f
.
addCall
(
"instance-exists-by-provider-id"
)
return
f
.
ExistsByProviderID
,
f
.
ErrByProviderID
return
f
.
ExistsByProviderID
,
f
.
ErrByProviderID
...
...
pkg/cloudprovider/providers/gce/gce_instances.go
View file @
cf75c498
...
@@ -153,7 +153,7 @@ func (gce *GCECloud) ExternalID(nodeName types.NodeName) (string, error) {
...
@@ -153,7 +153,7 @@ func (gce *GCECloud) ExternalID(nodeName types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
gce
*
GCECloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
gce
*
GCECloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/openstack/openstack_instances.go
View file @
cf75c498
...
@@ -111,7 +111,7 @@ func (i *Instances) ExternalID(name types.NodeName) (string, error) {
...
@@ -111,7 +111,7 @@ func (i *Instances) ExternalID(name types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
i
*
Instances
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
i
*
Instances
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/ovirt/ovirt.go
View file @
cf75c498
...
@@ -212,7 +212,7 @@ func (v *OVirtCloud) ExternalID(nodeName types.NodeName) (string, error) {
...
@@ -212,7 +212,7 @@ func (v *OVirtCloud) ExternalID(nodeName types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
v
*
OVirtCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
v
*
OVirtCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/photon/photon.go
View file @
cf75c498
...
@@ -471,7 +471,7 @@ func (pc *PCCloud) ExternalID(nodeName k8stypes.NodeName) (string, error) {
...
@@ -471,7 +471,7 @@ func (pc *PCCloud) ExternalID(nodeName k8stypes.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
pc
*
PCCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
pc
*
PCCloud
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/rackspace/rackspace.go
View file @
cf75c498
...
@@ -437,7 +437,7 @@ func (i *Instances) ExternalID(nodeName types.NodeName) (string, error) {
...
@@ -437,7 +437,7 @@ func (i *Instances) ExternalID(nodeName types.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
i
*
Instances
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
i
*
Instances
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
pkg/cloudprovider/providers/vsphere/vsphere.go
View file @
cf75c498
...
@@ -377,7 +377,7 @@ func (vs *VSphere) ExternalID(nodeName k8stypes.NodeName) (string, error) {
...
@@ -377,7 +377,7 @@ func (vs *VSphere) ExternalID(nodeName k8stypes.NodeName) (string, error) {
}
}
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// InstanceExistsByProviderID returns true if the instance with the given provider id still exists and is running.
// If false is returned with no error, the instance will be immediately deleted.
// If false is returned with no error, the instance will be immediately deleted
by the cloud controller manager
.
func
(
vs
*
VSphere
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
func
(
vs
*
VSphere
)
InstanceExistsByProviderID
(
providerID
string
)
(
bool
,
error
)
{
return
false
,
errors
.
New
(
"unimplemented"
)
return
false
,
errors
.
New
(
"unimplemented"
)
}
}
...
...
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