INNER CODE UNIT · Go

timeoutKeys

VladRassokhin/intellij-hcl · schemas-extractor/template/generate-schema.go:46

func timeoutKeys() []string {
	return []string{
		TimeoutCreate,
		TimeoutRead,
		TimeoutUpdate,
		TimeoutDelete,
		TimeoutDefault,
	}
}

func ExportResourceWithTimeouts(r *schema.Resource) SchemaInfoWithTimeouts {
	var timeouts []string
	t := r.Timeouts
	if t != nil {
		for _, key := range timeoutKeys() {
			var timeout *time.Duration
			switch key {
			case TimeoutCreate:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…