k6

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(l log.Logger, op *onepassword.OnePassword, opts ...CommandOption) (*Command, error)

func (*Command) Complete

func (c *Command) Complete(ctx context.Context, r *readline.Readline) []goprompt.Suggest

func (*Command) Description

func (c *Command) Description() string

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, r *readline.Readline) error

func (*Command) Help

func (c *Command) Help(ctx context.Context, r *readline.Readline) string

func (*Command) Name

func (c *Command) Name() string

type CommandOption

type CommandOption func(*Command)

func CommandWithConfigKey

func CommandWithConfigKey(v string) CommandOption

func CommandWithName

func CommandWithName(v string) CommandOption

type Config

type Config struct {
	Path string         `yaml:"path"`
	Envs map[string]Env `yaml:"envs"`
}

func (Config) Env

func (c Config) Env(name string) Env

func (Config) EnvNames

func (c Config) EnvNames() []string

func (Config) Scenarios

func (c Config) Scenarios() ([]string, error)

type Env

type Env map[string]string

Jump to

Keyboard shortcuts

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