mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-08 06:33:56 +00:00
vendor: revendor
This commit is contained in:
parent
269295a414
commit
9f0440be0f
669 changed files with 58447 additions and 20021 deletions
15
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
generated
vendored
15
vendor/k8s.io/apimachinery/pkg/apis/meta/v1/time.go
generated
vendored
|
|
@ -19,8 +19,6 @@ package v1
|
|||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
fuzz "github.com/google/gofuzz"
|
||||
)
|
||||
|
||||
// Time is a wrapper around time.Time which supports correct
|
||||
|
|
@ -182,16 +180,3 @@ func (t Time) MarshalQueryParameter() (string, error) {
|
|||
|
||||
return t.UTC().Format(time.RFC3339), nil
|
||||
}
|
||||
|
||||
// Fuzz satisfies fuzz.Interface.
|
||||
func (t *Time) Fuzz(c fuzz.Continue) {
|
||||
if t == nil {
|
||||
return
|
||||
}
|
||||
// Allow for about 1000 years of randomness. Leave off nanoseconds
|
||||
// because JSON doesn't represent them so they can't round-trip
|
||||
// properly.
|
||||
t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 0)
|
||||
}
|
||||
|
||||
var _ fuzz.Interface = &Time{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue