Documentation ¶
Index ¶
- func HoursSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.Hours) basetypes.ObjectValue
- func HoursTerraformToSdk(ctx context.Context, diags *diag.Diagnostics, d basetypes.ObjectValue) *models.Hours
- type HoursType
- func (t HoursType) Equal(o attr.Type) bool
- func (t HoursType) String() string
- func (t HoursType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t HoursType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t HoursType) ValueType(ctx context.Context) attr.Value
- type HoursValue
- func NewHoursValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (HoursValue, diag.Diagnostics)
- func NewHoursValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) HoursValue
- func NewHoursValueNull() HoursValue
- func NewHoursValueUnknown() HoursValue
- func (v HoursValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v HoursValue) Equal(o attr.Value) bool
- func (v HoursValue) IsNull() bool
- func (v HoursValue) IsUnknown() bool
- func (v HoursValue) String() string
- func (v HoursValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v HoursValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v HoursValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HoursSdkToTerraform ¶
func HoursSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.Hours) basetypes.ObjectValue
func HoursTerraformToSdk ¶
func HoursTerraformToSdk(ctx context.Context, diags *diag.Diagnostics, d basetypes.ObjectValue) *models.Hours
Types ¶
type HoursType ¶
type HoursType struct {
basetypes.ObjectType
}
func (HoursType) ValueFromObject ¶
func (t HoursType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (HoursType) ValueFromTerraform ¶
type HoursValue ¶
type HoursValue struct { Fri basetypes.StringValue `tfsdk:"fri"` Mon basetypes.StringValue `tfsdk:"mon"` Sat basetypes.StringValue `tfsdk:"sat"` Sun basetypes.StringValue `tfsdk:"sun"` Thu basetypes.StringValue `tfsdk:"thu"` Tue basetypes.StringValue `tfsdk:"tue"` Wed basetypes.StringValue `tfsdk:"wed"` // contains filtered or unexported fields }
func NewHoursValue ¶
func NewHoursValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (HoursValue, diag.Diagnostics)
func NewHoursValueMust ¶
func NewHoursValueNull ¶
func NewHoursValueNull() HoursValue
func NewHoursValueUnknown ¶
func NewHoursValueUnknown() HoursValue
func (HoursValue) AttributeTypes ¶
func (HoursValue) IsNull ¶
func (v HoursValue) IsNull() bool
func (HoursValue) IsUnknown ¶
func (v HoursValue) IsUnknown() bool
func (HoursValue) String ¶
func (v HoursValue) String() string
func (HoursValue) ToObjectValue ¶
func (v HoursValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (HoursValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.