kubernetes/vendor/k8s.io/kube-openapi/pkg/validation/strfmt/duration.go

func init() {}

var timeUnits

var timeMultiplier

var durationMatcher

// IsDuration returns true if the provided string is a valid duration
func IsDuration(str string) bool {}

type Duration

// MarshalText turns this instance into text
func (d Duration) MarshalText() ([]byte, error) {}

// UnmarshalText hydrates this instance from text
func (d *Duration) UnmarshalText(data []byte) error {}

// ParseDuration parses a duration from a string, compatible with scala duration syntax
func ParseDuration(cand string) (time.Duration, error) {}

// Scan reads a Duration value from database driver type.
func (d *Duration) Scan(raw interface{}

// String converts this duration to a string
func (d Duration) String() string {}

// MarshalJSON returns the Duration as JSON
func (d Duration) MarshalJSON() ([]byte, error) {}

// UnmarshalJSON sets the Duration from JSON
func (d *Duration) UnmarshalJSON(data []byte) error {}

// DeepCopyInto copies the receiver and writes its value into out.
func (d *Duration) DeepCopyInto(out *Duration) {}

// DeepCopy copies the receiver into a new Duration.
func (d *Duration) DeepCopy() *Duration {}