Wrap more comments in pkg/volume

This commit is contained in:
Paul Morie
2016-06-04 14:14:00 -04:00
parent 029b97d5a1
commit 6415c2d288
4 changed files with 34 additions and 24 deletions

View File

@@ -21,11 +21,12 @@ import "errors"
var _ MetricsProvider = &MetricsNil{}
// MetricsNil represents a MetricsProvider that does not support returning
// Metrics. It serves as a placeholder for Volumes that do not yet support metrics.
// Metrics. It serves as a placeholder for Volumes that do not yet support
// metrics.
type MetricsNil struct{}
// See MetricsProvider.GetMetrics
// GetMetrics returns an empty Metrics and an error.
// See MetricsProvider.GetMetrics
func (*MetricsNil) GetMetrics() (*Metrics, error) {
return &Metrics{}, errors.New("metrics are not supported for MetricsNil Volumes")
}