py

package
v0.0.0-...-ccd025e Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package py contains xk6-python module implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap()

Bootstrap initializes the extension. Register the extension as a k6 JavaScript module. In the case of the run command, if the argument has .py or .star file extension, it rewrites the argument to stdin and sends a bootstrap JavaScript code to stdin.

func RegisterBuiltin

func RegisterBuiltin(loader BuiltinLoaderFunc, module string)

RegisterBuiltin registers a built-in module.

func RegisterFilesystem

func RegisterFilesystem(filesystem fs.FS)

RegisterFilesystem registers all embedded modules from a filesystem.

func RegisterSubFilesystem

func RegisterSubFilesystem(filesystem fs.FS, dir string) error

RegisterSubFilesystem registers all embedded modules from a direcory of a filesystem.

Types

type BuiltinLoaderFunc

type BuiltinLoaderFunc func(string, *starlark.Thread, modules.VU) (starlark.StringDict, error)

BuiltinLoaderFunc loads a built-in (golang) module.

Directories

Path Synopsis
builtin
greeting
The greeting package is an example builtin module.
The greeting package is an example builtin module.
requests
The requests package contains HTTP requests module.
The requests package contains HTTP requests module.
time
The time package is the implementation of the builtin time module.
The time package is the implementation of the builtin time module.

Jump to

Keyboard shortcuts

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