connecthoursofoperation

package
v0.0.0-...-c2cc54e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 (ConfigAttributes) EndTime

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

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 EndTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

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 (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

type StartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL