loadtestutil

package
v2.29.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Prefix for all scaletest resources (users and workspaces)
	ScaleTestPrefix = "scaletest"

	// Email domain for scaletest users
	EmailDomain = "@scaletest.local"

	DefaultRandLength = 8
)

Variables

This section is empty.

Functions

func CreateTarFromFiles added in v2.29.0

func CreateTarFromFiles(files map[string][]byte) ([]byte, error)

func GenerateUserIdentifier added in v2.27.0

func GenerateUserIdentifier(id string) (username, email string, err error)

GenerateUserIdentifier generates a username and email for scale testing. The username follows the pattern: scaletest-<random>-<id> The email follows the pattern: <random>-<id>@scaletest.local

func GenerateWorkspaceName added in v2.27.0

func GenerateWorkspaceName(id string) (name string, err error)

GenerateWorkspaceName generates a workspace name for scale testing. The workspace name follows the pattern: scaletest-<random>-<id>

func IsScaleTestUser added in v2.27.0

func IsScaleTestUser(username, email string) bool

IsScaleTestUser checks if a username indicates it was created for scale testing.

func IsScaleTestWorkspace added in v2.27.0

func IsScaleTestWorkspace(workspaceName, ownerName string) bool

IsScaleTestWorkspace checks if a workspace name indicates it was created for scale testing.

Types

type SyncWriter

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

SyncWriter wraps an io.Writer in a sync.Mutex.

func NewSyncWriter

func NewSyncWriter(w io.Writer) *SyncWriter

func (*SyncWriter) Close

func (sw *SyncWriter) Close() error

func (*SyncWriter) Write

func (sw *SyncWriter) Write(p []byte) (n int, err error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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