Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewNotSupportedError (0.27 sec)

  1. pkg/volume/metrics_errors.go

    	"fmt"
    )
    
    const (
    	// ErrCodeNotSupported code for NotSupported Errors.
    	ErrCodeNotSupported int = iota + 1
    	ErrCodeNoPathDefined
    	ErrCodeFsInfoFailed
    )
    
    // NewNotSupportedError creates a new MetricsError with code NotSupported.
    func NewNotSupportedError() *MetricsError {
    	return &MetricsError{
    		Code: ErrCodeNotSupported,
    		Msg:  "metrics are not supported for MetricsNil Volumes",
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 20 14:37:12 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. pkg/volume/metrics_nil.go

    	return false
    }
    
    // GetMetrics returns an empty Metrics and an error.
    // See MetricsProvider.GetMetrics
    func (*MetricsNil) GetMetrics() (*Metrics, error) {
    	return &Metrics{}, NewNotSupportedError()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 20 15:10:23 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top