driftctl/pkg/resource/supplier.go

18 lines
406 B
Go
Raw Normal View History

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
type Supplier interface {
2021-08-09 14:03:04 +00:00
Resources() ([]*Resource, error)
}
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
}
type StoppableSupplier interface {
Supplier
Stop()
}