mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
vendored changes
This commit is contained in:
parent
d091fff18b
commit
128f9a29f5
522 changed files with 29974 additions and 25705 deletions
6
vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go
generated
vendored
6
vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go
generated
vendored
|
|
@ -584,6 +584,12 @@ func (q *Quantity) Neg() {
|
|||
q.d.Dec.Neg(q.d.Dec)
|
||||
}
|
||||
|
||||
// Equal checks equality of two Quantities. This is useful for testing with
|
||||
// cmp.Equal.
|
||||
func (q Quantity) Equal(v Quantity) bool {
|
||||
return q.Cmp(v) == 0
|
||||
}
|
||||
|
||||
// int64QuantityExpectedBytes is the expected width in bytes of the canonical string representation
|
||||
// of most Quantity values.
|
||||
const int64QuantityExpectedBytes = 18
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue