Documentation ¶
Overview ¶
Package builder contains k6 builder logic.
Index ¶
- Variables
- func EngineStrings() []string
- func Preload(ctx context.Context, builder Builder, mods dependency.Modules, ...) error
- func WithReplacements(ctx context.Context, reps Replacements) context.Context
- type Builder
- type Engine
- func (i Engine) IsAEngine() bool
- func (i Engine) MarshalJSON() ([]byte, error)
- func (i Engine) MarshalText() ([]byte, error)
- func (e Engine) NewBuilder(ctx context.Context) (Builder, bool, error)
- func (i Engine) String() string
- func (i *Engine) UnmarshalJSON(data []byte) error
- func (i *Engine) UnmarshalText(text []byte) error
- func (Engine) Values() []string
- type Platform
- type Replacement
- type Replacements
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPlatform = errors.New("invalid platform")
Functions ¶
func EngineStrings ¶ added in v0.2.0
func EngineStrings() []string
EngineStrings returns a slice of all String values of the enum
func WithReplacements ¶ added in v0.4.0
func WithReplacements(ctx context.Context, reps Replacements) context.Context
Types ¶
type Builder ¶ added in v0.2.0
type Engine ¶ added in v0.2.0
type Engine int
func DefaultEngines ¶ added in v0.4.0
func DefaultEngines() []Engine
func EngineString ¶ added in v0.2.0
EngineString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func EngineValues ¶ added in v0.2.0
func EngineValues() []Engine
EngineValues returns all values of the enum
func (Engine) IsAEngine ¶ added in v0.2.0
IsAEngine returns "true" if the value is listed in the enum definition. "false" otherwise
func (Engine) MarshalJSON ¶ added in v0.2.0
MarshalJSON implements the json.Marshaler interface for Engine
func (Engine) MarshalText ¶ added in v0.2.0
MarshalText implements the encoding.TextMarshaler interface for Engine
func (Engine) NewBuilder ¶ added in v0.4.0
func (*Engine) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON implements the json.Unmarshaler interface for Engine
func (*Engine) UnmarshalText ¶ added in v0.2.0
UnmarshalText implements the encoding.TextUnmarshaler interface for Engine
type Platform ¶ added in v0.4.0
func NewPlatform ¶ added in v0.4.0
func ParsePlatform ¶ added in v0.4.0
func RuntimePlatform ¶ added in v0.4.0
func RuntimePlatform() *Platform
func SupportedPlatforms ¶ added in v0.4.0
func SupportedPlatforms() []*Platform
type Replacement ¶ added in v0.4.0
func NewReplacement ¶ added in v0.4.0
func NewReplacement(name, path string) *Replacement
func (*Replacement) String ¶ added in v0.4.0
func (rep *Replacement) String() string
type Replacements ¶ added in v0.4.0
type Replacements map[string]*Replacement
func (Replacements) MarshalJSON ¶ added in v0.4.0
func (reps Replacements) MarshalJSON() ([]byte, error)
func (Replacements) String ¶ added in v0.4.0
func (reps Replacements) String() string
Click to show internal directories.
Click to hide internal directories.