Documentation ¶
Overview ¶
Package local implements a local build service
Index ¶
- func DefaultLocalBuildService() (k6build.BuildService, error)
- func DependencyComp(a, b k6catalog.Module) bool
- func NewBuildService(ctx context.Context, config BuildServiceConfig) (k6build.BuildService, error)
- func SetupTestLocalBuildService(t *testing.T) (k6build.BuildService, error)
- type BuildServiceConfig
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 ¶
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 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
Click to show internal directories.
Click to hide internal directories.