mirror of
https://github.com/Noratrieb/terustform.git
synced 2026-01-16 09:25:10 +01:00
Stub out resources
This commit is contained in:
parent
3c891034ee
commit
60de4d5ba8
7 changed files with 155 additions and 39 deletions
|
|
@ -4,11 +4,7 @@ mod resources;
|
|||
use std::collections::HashMap;
|
||||
|
||||
use eyre::Context;
|
||||
use terustform::{
|
||||
datasource::DataSource,
|
||||
provider::{MkDataSource, Provider},
|
||||
DResult, EyreExt, Schema, Value,
|
||||
};
|
||||
use terustform::{datasource::DataSource, provider::Provider, DResult, EyreExt, Schema, Value};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
|
|
@ -44,11 +40,15 @@ impl Provider for ExampleProvider {
|
|||
Ok(client)
|
||||
}
|
||||
|
||||
fn data_sources(&self) -> Vec<MkDataSource<Self::Data>> {
|
||||
fn data_sources(&self) -> terustform::provider::DataSources<Self> {
|
||||
vec![
|
||||
resources::kitty::ExampleDataSource::erase(),
|
||||
resources::hugo::HugoDataSource::erase(),
|
||||
resources::class_data_source::ClassDataSource::erase(),
|
||||
]
|
||||
}
|
||||
|
||||
fn resources(&self) -> terustform::provider::Resources<Self> {
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue