timeouts

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package timeouts contains all functions and variables related to handling timeouts

Index

Constants

This section is empty.

Variables

View Source
var SDKDefaultTimeout = time.Minute * 20

SDKDefaultTimeout is a timeout used by Hashicorp when no explicit timeout was specified

Functions

func MigrateToExplicit

func MigrateToExplicit() func(ctx context.Context, rawState map[string]any, meta any) (map[string]any, error)

MigrateToExplicit is used as a state upgrader function from implicit SDK's timeout object to explicit single-block based timeout

func ValidateDurationFormat

func ValidateDurationFormat(v any, _ cty.Path) diag.Diagnostics

ValidateDurationFormat validates if provided value is a time duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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