github.com/opentofu/opentofu@v1.7.1/internal/legacy/helper/schema/field_writer.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package schema
     7  
     8  // FieldWriters are responsible for writing fields by address into
     9  // a proper typed representation. ResourceData uses this to write new data
    10  // into existing sources.
    11  type FieldWriter interface {
    12  	WriteField([]string, interface{}) error
    13  }