mist_hours

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Equal

func (t HoursType) Equal(o attr.Type) bool

func (HoursType) String

func (t HoursType) String() string

func (HoursType) ValueFromObject

func (HoursType) ValueFromTerraform

func (t HoursType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (HoursType) ValueType

func (t HoursType) ValueType(ctx context.Context) attr.Value

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 NewHoursValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) HoursValue

func NewHoursValueNull

func NewHoursValueNull() HoursValue

func NewHoursValueUnknown

func NewHoursValueUnknown() HoursValue

func (HoursValue) AttributeTypes

func (v HoursValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (HoursValue) Equal

func (v HoursValue) Equal(o attr.Value) bool

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 (HoursValue) ToTerraformValue

func (v HoursValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (HoursValue) Type

func (v HoursValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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