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
d168bbe3
Commit
d168bbe3
authored
Jul 18, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28767 from johscheuer/fix-volume-typos
Automatic merge from submit-queue Fix typos in volume.go Fixed some minor typos in the docs of `volume.go`.
parents
08b4f5f8
07b81abb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
volume.go
pkg/volume/volume.go
+5
-5
No files found.
pkg/volume/volume.go
View file @
d168bbe3
...
@@ -41,7 +41,7 @@ type Volume interface {
...
@@ -41,7 +41,7 @@ type Volume interface {
// MetricsProvider exposes metrics (e.g. used,available space) related to a
// MetricsProvider exposes metrics (e.g. used,available space) related to a
// Volume.
// Volume.
type
MetricsProvider
interface
{
type
MetricsProvider
interface
{
// GetMetrics returns the Metrics for the Volume.
Maybe expensive for
// GetMetrics returns the Metrics for the Volume. Maybe expensive for
// some implementations.
// some implementations.
GetMetrics
()
(
*
Metrics
,
error
)
GetMetrics
()
(
*
Metrics
,
error
)
}
}
...
@@ -107,9 +107,9 @@ type Unmounter interface {
...
@@ -107,9 +107,9 @@ type Unmounter interface {
// Recycler provides methods to reclaim the volume resource.
// Recycler provides methods to reclaim the volume resource.
type
Recycler
interface
{
type
Recycler
interface
{
Volume
Volume
// Recycle reclaims the resource.
Calls to this method should block until
// Recycle reclaims the resource. Calls to this method should block until
// the recycling task is complete. Any error returned indicates the volume
// the recycling task is complete. Any error returned indicates the volume
// has failed to be reclaimed.
A nil return indicates success.
// has failed to be reclaimed. A nil return indicates success.
Recycle
()
error
Recycle
()
error
}
}
...
@@ -122,7 +122,7 @@ type Provisioner interface {
...
@@ -122,7 +122,7 @@ type Provisioner interface {
Provision
()
(
*
api
.
PersistentVolume
,
error
)
Provision
()
(
*
api
.
PersistentVolume
,
error
)
}
}
// Deleter removes the resource from the underlying storage provider.
Calls
// Deleter removes the resource from the underlying storage provider. Calls
// to this method should block until the deletion is complete. Any error
// to this method should block until the deletion is complete. Any error
// returned indicates the volume has failed to be reclaimed. A nil return
// returned indicates the volume has failed to be reclaimed. A nil return
// indicates success.
// indicates success.
...
@@ -135,7 +135,7 @@ type Deleter interface {
...
@@ -135,7 +135,7 @@ type Deleter interface {
// Attacher can attach a volume to a node.
// Attacher can attach a volume to a node.
type
Attacher
interface
{
type
Attacher
interface
{
// Attaches the volume specified by the given spec to the given host.
// Attaches the volume specified by the given spec to the given host.
// On success, returns the device path where the device was attache
d
on the
// On success, returns the device path where the device was attache
d
on the
// node.
// node.
Attach
(
spec
*
Spec
,
hostName
string
)
(
string
,
error
)
Attach
(
spec
*
Spec
,
hostName
string
)
(
string
,
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