environment

package
v0.6.40 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = dev

Version of this binary

Functions

func IsDev

func IsDev() bool

Types

type Environment

type Environment interface {
	// Setup ensures that the environment is correctly initialized
	Setup() error
}

Environment is responsible for handling harness working directory. It can initialize, download and create required files.

func New

func New(options ...Option) Environment

New creates a new Environment.

type Option

type Option func(*environment)

Option allows to modify Environment behavior.

func WithFetchClient

func WithFetchClient(client helpers.FetchClient) Option

WithFetchClient allows configuring helpers.FetchClient used by the Environment to download files.

func WithFilesDir

func WithFilesDir(dir string) Option

WithFilesDir allow changing the default path where all additional files are being created.

func WithStackRun

func WithStackRun(stackRun *v1.StackRun) Option

WithStackRun provides information about stack run used to initialize the Environment.

func WithWorkingDir

func WithWorkingDir(dir string) Option

WithWorkingDir allows changing the default working directory of the Environment.

Jump to

Keyboard shortcuts

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