env

package
v1.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

View Source
const (
	EnvURLVar              = "DEVNET_ENV_URL"
	ChainNameVar           = "DEVNET_CHAIN_NAME"
	NodeIndexVar           = "DEVNET_NODE_INDEX"
	ExpectPreconditionsMet = "DEVNET_EXPECT_PRECONDITIONS_MET"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	// contains filtered or unexported fields
}

func (*ChainConfig) GetEnv

func (c *ChainConfig) GetEnv(opts ...ChainConfigOption) (*ChainEnv, error)

type ChainConfigOption added in v1.11.1

type ChainConfigOption func(*ChainConfig, *chainConfigOpts) error

func WithCastIntegration added in v1.11.1

func WithCastIntegration(cast bool, nodeIndex int) ChainConfigOption

func WithExpectedPreconditions added in v1.11.1

func WithExpectedPreconditions(pre bool) ChainConfigOption

type ChainEnv

type ChainEnv struct {
	// contains filtered or unexported fields
}

func (*ChainEnv) ApplyToEnv added in v1.11.1

func (e *ChainEnv) ApplyToEnv(env []string) []string

func (*ChainEnv) GetMotd added in v1.11.1

func (e *ChainEnv) GetMotd() string

type DataFetcher added in v1.11.1

type DataFetcher func(*url.URL) (*descriptors.DevnetEnvironment, error)

DataFetcher is a function type for fetching data from a URL

type DevnetEnv

type DevnetEnv struct {
	Env *descriptors.DevnetEnvironment
	URL string
	// contains filtered or unexported fields
}

func LoadDevnetFromURL added in v1.11.1

func LoadDevnetFromURL(devnetURL string) (*DevnetEnv, error)

func (*DevnetEnv) Control added in v1.13.2

func (d *DevnetEnv) Control() (surface.ControlSurface, error)

func (*DevnetEnv) GetChain

func (d *DevnetEnv) GetChain(chainName string) (*ChainConfig, error)

type DevnetFS added in v1.13.2

type DevnetFS interface {
	GetDevnetDescriptor(ctx context.Context, opts ...ktfs.DevnetFSDescriptorOption) (*descriptors.DevnetEnvironment, error)
}

DevnetFS is an interface that both our mock and the real implementation satisfy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL