mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
10 lines
277 B
Go
10 lines
277 B
Go
package providers
|
|
|
|
type Interface interface {
|
|
// RunQuery executes the query and converts the first result to float64
|
|
RunQuery(query string) (float64, error)
|
|
|
|
// IsOnline calls the provider endpoint and returns an error if the API is unreachable
|
|
IsOnline() (bool, error)
|
|
}
|