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 ¶
type Time ¶ added in v4.68.0
type Time struct {
// contains filtered or unexported fields
}
Time is a wrapper around time.Time that should be used in config when a time type is required. We wrap the time.Time type so that the spec can be extended in the future to support other types of times
func (Time) JSONSchema ¶ added in v4.68.0
func (Time) JSONSchema() *jsonschema.Schema
func (Time) MarshalJSON ¶ added in v4.68.0
func (*Time) UnmarshalJSON ¶ added in v4.68.0
Click to show internal directories.
Click to hide internal directories.