Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
Duration is a wrapper around time.Duration that should be used in config when a duration type is required. We wrap the time.Duration type so that the spec can be extended in the future to support other types of durations (e.g. a duration that is specified in days).
func NewDuration ¶
func (Duration) JSONSchema ¶ added in v4.15.0
func (Duration) JSONSchema() *jsonschema.Schema
func (*Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.