Help us shape the future of Go! Take the 2026 Go Developer Survey

requestsetting

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonAttributes

func CommonAttributes() map[string]schema.Attribute

func Equal

func Equal(a, b []NestedModel) bool

func NestedBlockSchema

func NestedBlockSchema() schema.ListNestedBlock

func Reconcile

func Reconcile(ctx context.Context, client *fastly.Client, serviceID string, version int, desired []NestedModel) error

func ValidateConditionReferences

func ValidateConditionReferences(requestSettings []NestedModel, conditionNames map[string]struct{}) error

ValidateConditionReferences rejects a request_condition naming a condition block absent from config.

Types

type NestedModel

type NestedModel struct {
	Name             types.String `tfsdk:"name"`
	Action           types.String `tfsdk:"action"`
	BypassBusyWait   types.Bool   `tfsdk:"bypass_busy_wait"`
	DefaultHost      types.String `tfsdk:"default_host"`
	ForceMiss        types.Bool   `tfsdk:"force_miss"`
	ForceSSL         types.Bool   `tfsdk:"force_ssl"`
	HashKeys         types.String `tfsdk:"hash_keys"`
	MaxStaleAge      types.Int64  `tfsdk:"max_stale_age"`
	RequestCondition types.String `tfsdk:"request_condition"`
	TimerSupport     types.Bool   `tfsdk:"timer_support"`
	XFF              types.String `tfsdk:"xff"`
}

func MatchOrder

func MatchOrder(items, order []NestedModel) []NestedModel

func ReadForVersion

func ReadForVersion(ctx context.Context, client *fastly.Client, serviceID string, version int) ([]NestedModel, error)

func (NestedModel) ModelsEqual

func (n NestedModel) ModelsEqual(other NestedModel) bool

Jump to

Keyboard shortcuts

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