2020-12-09 15:31:34 +00:00
|
|
|
package resource
|
|
|
|
|
2022-02-01 11:26:29 +00:00
|
|
|
// Supplier supply the list of resource.Resource, it's the main interface to retrieve remote resources
|
2020-12-09 15:31:34 +00:00
|
|
|
type Supplier interface {
|
2021-08-09 14:03:04 +00:00
|
|
|
Resources() ([]*Resource, error)
|
2020-12-09 15:31:34 +00:00
|
|
|
}
|
|
|
|
|
2022-02-01 11:26:29 +00:00
|
|
|
// IaCSupplier supply the list of resource.Resource, it's the main interface to retrieve state resources
|
|
|
|
type IaCSupplier interface {
|
|
|
|
Supplier
|
|
|
|
SourceCount() uint
|
|
|
|
}
|
|
|
|
|
2020-12-09 15:31:34 +00:00
|
|
|
type StoppableSupplier interface {
|
|
|
|
Supplier
|
|
|
|
Stop()
|
|
|
|
}
|