Documentation ¶
Index ¶
- type Config
- type ConfigAttributes
- func (c ConfigAttributes) Day() terra.StringValue
- func (c ConfigAttributes) EndTime() terra.ListValue[EndTimeAttributes]
- func (c ConfigAttributes) InternalRef() (terra.Reference, error)
- func (c ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c ConfigAttributes) InternalWithRef(ref terra.Reference) ConfigAttributes
- func (c ConfigAttributes) StartTime() terra.ListValue[StartTimeAttributes]
- type ConfigState
- type EndTime
- type EndTimeAttributes
- func (et EndTimeAttributes) Hours() terra.NumberValue
- func (et EndTimeAttributes) InternalRef() (terra.Reference, error)
- func (et EndTimeAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (et EndTimeAttributes) InternalWithRef(ref terra.Reference) EndTimeAttributes
- func (et EndTimeAttributes) Minutes() terra.NumberValue
- type EndTimeState
- type StartTime
- type StartTimeAttributes
- func (st StartTimeAttributes) Hours() terra.NumberValue
- func (st StartTimeAttributes) InternalRef() (terra.Reference, error)
- func (st StartTimeAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (st StartTimeAttributes) InternalWithRef(ref terra.Reference) StartTimeAttributes
- func (st StartTimeAttributes) Minutes() terra.NumberValue
- type StartTimeState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Day: string, required Day terra.StringValue `hcl:"day,attr" validate:"required"` // EndTime: required EndTime *EndTime `hcl:"end_time,block" validate:"required"` // StartTime: required StartTime *StartTime `hcl:"start_time,block" validate:"required"` }
type ConfigAttributes ¶
type ConfigAttributes struct {
// contains filtered or unexported fields
}
func (ConfigAttributes) Day ¶
func (c ConfigAttributes) Day() terra.StringValue
func (ConfigAttributes) EndTime ¶
func (c ConfigAttributes) EndTime() terra.ListValue[EndTimeAttributes]
func (ConfigAttributes) InternalRef ¶
func (c ConfigAttributes) InternalRef() (terra.Reference, error)
func (ConfigAttributes) InternalTokens ¶
func (c ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ConfigAttributes) InternalWithRef ¶
func (c ConfigAttributes) InternalWithRef(ref terra.Reference) ConfigAttributes
func (ConfigAttributes) StartTime ¶
func (c ConfigAttributes) StartTime() terra.ListValue[StartTimeAttributes]
type ConfigState ¶
type ConfigState struct { Day string `json:"day"` EndTime []EndTimeState `json:"end_time"` StartTime []StartTimeState `json:"start_time"` }
type EndTime ¶
type EndTime struct { // Hours: number, required Hours terra.NumberValue `hcl:"hours,attr" validate:"required"` // Minutes: number, required Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"` }
type EndTimeAttributes ¶
type EndTimeAttributes struct {
// contains filtered or unexported fields
}
func (EndTimeAttributes) Hours ¶
func (et EndTimeAttributes) Hours() terra.NumberValue
func (EndTimeAttributes) InternalRef ¶
func (et EndTimeAttributes) InternalRef() (terra.Reference, error)
func (EndTimeAttributes) InternalTokens ¶
func (et EndTimeAttributes) InternalTokens() (hclwrite.Tokens, error)
func (EndTimeAttributes) InternalWithRef ¶
func (et EndTimeAttributes) InternalWithRef(ref terra.Reference) EndTimeAttributes
func (EndTimeAttributes) Minutes ¶
func (et EndTimeAttributes) Minutes() terra.NumberValue
type EndTimeState ¶
type StartTime ¶
type StartTime struct { // Hours: number, required Hours terra.NumberValue `hcl:"hours,attr" validate:"required"` // Minutes: number, required Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"` }
type StartTimeAttributes ¶
type StartTimeAttributes struct {
// contains filtered or unexported fields
}
func (StartTimeAttributes) Hours ¶
func (st StartTimeAttributes) Hours() terra.NumberValue
func (StartTimeAttributes) InternalRef ¶
func (st StartTimeAttributes) InternalRef() (terra.Reference, error)
func (StartTimeAttributes) InternalTokens ¶
func (st StartTimeAttributes) InternalTokens() (hclwrite.Tokens, error)
func (StartTimeAttributes) InternalWithRef ¶
func (st StartTimeAttributes) InternalWithRef(ref terra.Reference) StartTimeAttributes
func (StartTimeAttributes) Minutes ¶
func (st StartTimeAttributes) Minutes() terra.NumberValue
type StartTimeState ¶
Click to show internal directories.
Click to hide internal directories.