env

package
v1.16.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

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