kubernetes/pkg/volume/metrics_errors.go

const ErrCodeNotSupported

const ErrCodeNoPathDefined

const ErrCodeFsInfoFailed

// NewNotSupportedError creates a new MetricsError with code NotSupported.
func NewNotSupportedError() *MetricsError {}

// NewNotImplementedError creates a new MetricsError with code NotSupported.
func NewNotImplementedError(reason string) *MetricsError {}

// NewNotSupportedErrorWithDriverName creates a new MetricsError with code NotSupported.
// driver name is added to the error message.
func NewNotSupportedErrorWithDriverName(name string) *MetricsError {}

// NewNoPathDefinedError creates a new MetricsError with code NoPathDefined.
func NewNoPathDefinedError() *MetricsError {}

// NewFsInfoFailedError creates a new MetricsError with code FsInfoFailed.
func NewFsInfoFailedError(err error) *MetricsError {}

type MetricsError

func (e *MetricsError) Error() string {}

// IsNotSupported returns true if and only if err is "key" not found error.
func IsNotSupported(err error) bool {}

func isErrCode(err error, code int) bool {}