mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-03 10:32:05 +00:00
* add the infrastructure types * add infra data to testnetload * extract infrastructure generation from manifest creation * add infrastructure type and data flags * rename docker ifd constructor * implement read ifd from file * add 'provider' field to the infrastructure data file to disable ip range check * return error from infrastructure from data file function * remove ifd from Setup * implement a basic infra provider with a simple setup command * remove misbehavior remnants * use manifest instead of file in all places * include cidr block range in the infrastructure data * nolint gosec * gosec * lint
21 lines
568 B
Go
21 lines
568 B
Go
package infra
|
|
|
|
// Provider defines an API for manipulating the infrastructure of a
|
|
// specific set of testnet infrastructure.
|
|
type Provider interface {
|
|
|
|
// Setup generates any necessary configuration for the infrastructure
|
|
// provider during testnet setup.
|
|
Setup() error
|
|
}
|
|
|
|
// NoopProvider implements the provider interface by performing noops for every
|
|
// interface method. This may be useful if the infrastructure is managed by a
|
|
// separate process.
|
|
type NoopProvider struct {
|
|
}
|
|
|
|
func (NoopProvider) Setup() error { return nil }
|
|
|
|
var _ Provider = NoopProvider{}
|