local

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: AGPL-3.0 Imports: 17 Imported by: 1

Documentation

Overview

Package local implements a local build service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLocalBuildService

func DefaultLocalBuildService() (k6build.BuildService, error)

DefaultLocalBuildService creates a local build service with default configuration

func DependencyComp

func DependencyComp(a, b k6catalog.Module) bool

DependencyComp compares two dependencies for ordering

func NewBuildService

func NewBuildService(ctx context.Context, config BuildServiceConfig) (k6build.BuildService, error)

NewBuildService creates a local build service using the given configuration

func SetupTestLocalBuildService

func SetupTestLocalBuildService(t *testing.T) (k6build.BuildService, error)

SetupTestLocalBuildService setups a local build service for testing

Types

type BuildServiceConfig

type BuildServiceConfig struct {
	// Set build environment variables
	// Can be used for setting (or overriding, if CopyGoEnv is true) go environment variables
	BuildEnv map[string]string
	// path to catalog's json file. Can be a file path or a URL
	Catalog string
	// url to remote cache service
	CacheURL string
	// path to cache dir
	CacheDir string
	// Copy go environment. BuildEnv can override the variables copied from go environment.
	CopyGoEnv bool
	// ser verbose build mode
	Verbose bool
}

BuildServiceConfig defines the configuration for a Local build service

Jump to

Keyboard shortcuts

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