18 lines
406 B
Go
18 lines
406 B
Go
package resource
|
|
|
|
// Supplier supply the list of resource.Resource, it's the main interface to retrieve remote resources
|
|
type Supplier interface {
|
|
Resources() ([]*Resource, error)
|
|
}
|
|
|
|
// IaCSupplier supply the list of resource.Resource, it's the main interface to retrieve state resources
|
|
type IaCSupplier interface {
|
|
Supplier
|
|
SourceCount() uint
|
|
}
|
|
|
|
type StoppableSupplier interface {
|
|
Supplier
|
|
Stop()
|
|
}
|