Skip to content

Commit

Permalink
Config DataSource structure
Browse files Browse the repository at this point in the history
This represents a data source configuration.
  • Loading branch information
apparentlymart committed Feb 2, 2016
1 parent bb4c58a commit 3531c97
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Config struct {
Atlas *AtlasConfig
Modules []*Module
ProviderConfigs []*ProviderConfig
DataSources []*DataSource
Resources []*Resource
Variables []*Variable
Outputs []*Output
Expand Down Expand Up @@ -67,6 +68,18 @@ type ProviderConfig struct {
RawConfig *RawConfig
}

// DataSource is the configuration for a data source.
// A data source represents retrieving some data from an external source for
// use elsewhere in a Terraform configuration, or computing some data
// internally within a logical provider.
type DataSource struct {
Name string
Type string
RawConfig *RawConfig
Provider string
DependsOn []string
}

// A resource represents a single Terraform resource in the configuration.
// A Terraform resource is something that represents some component that
// can be created and managed, and has some properties associated with it.
Expand Down

0 comments on commit 3531c97

Please sign in to comment.