func (remoteState *RemoteState) Validate() error {
	if remoteState.Backend == "" {
		return errors.WithStackTrace(RemoteBackendMissing)
	}
	return nil
}
Validate that the remote state is configured correctly
package remote
import (
	"fmt"
	"reflect"
	"github.com/gruntwork-io/terragrunt/errors"
	"github.com/gruntwork-io/terragrunt/options"
)
type RemoteState struct {
	Backend     string
	DisableInit bool
	Config      map[string]interface{}
}
func (remoteState *RemoteState) String() string {
	return fmt.Sprintf("RemoteState{Backend = %v, DisableInit = %v, Config = %v}", remoteState.Backend, remoteState.DisableInit, remoteState.Config)
}
type RemoteStateInitializer interface {
	NeedsInitialization(remoteState *RemoteState, existingBackend *TerraformBackend, terragruntOptions *options.TerragruntOptions) (bool, error)
	Initialize(remoteState *RemoteState, terragruntOptions *options.TerragruntOptions) error
	GetTerraformInitArgs(config map[string]interface{}) map[string]interface{}
}
var remoteStateInitializers = map[string]RemoteStateInitializer{
	"s3":  S3Initializer{},
	"gcs": GCSInitializer{},
}
func (remoteState *RemoteState) FillDefaults() {
}