-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provider, Resource, and DataSource types #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nitpicks and suggestions, but this looks pretty much right to me.
data_source.go
Outdated
) | ||
|
||
// A DataSourceType is a type of data source. For each type of data source this | ||
// provider supports, it should instantiate a struct implementing DataSourceType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// provider supports, it should instantiate a struct implementing DataSourceType | |
// provider supports, it should define a type implementing DataSourceType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we clarify in this direction, I'd rather we change the whole thing to "it should define a type implementing DataSourceType and return an instance [of that type] in the map returned by Provider.GetDataSources." Will do so and we can see if it reads better.
resource.go
Outdated
) | ||
|
||
// A ResourceType is a type of resource. For each type of resource this provider | ||
// supports, it should instantiate a struct implementing ResourceType and return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// supports, it should instantiate a struct implementing ResourceType and return | |
// supports, it should define a type implementing ResourceType and return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Let's do it 🚀
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
closes #14
closes #15