scenarioharness

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdempotencyHeaders

func IdempotencyHeaders(value string) http.Header

func JSONBody

func JSONBody(value any) io.Reader

func RequestJSON

func RequestJSON[T any](
	ctx context.Context,
	client *secondboxclient.Client,
	operationID string,
	options secondboxclient.CallOptions,
) (T, error)

func RestartService added in v0.11.0

func RestartService(ctx context.Context, start func(context.Context) error, running func(context.Context) (bool, error)) error

RestartService bounds both start attempts and state inspection by ctx. Each attempt gets half the remaining budget, leaving time for one retry even when the first start command hangs. Callers retain command output for diagnostics.

func RevisionETag

func RevisionETag(revision int64) string

func WaitSandbox

func WaitSandbox(
	ctx context.Context,
	handle *secondboxclient.SandboxHandle,
	states []secondboxclient.SandboxState,
	maximumWaitRequest time.Duration,
) (secondboxclient.Sandbox, error)

Types

type Clients

type Clients struct {
	Admin      *secondboxclient.Client
	Subject    *secondboxclient.Client
	HTTPClient *http.Client
}

func NewClients

func NewClients(
	baseURL string,
	platformToken string,
	applicationToken string,
	tenantRef string,
	subjectRef string,
	timeout time.Duration,
) (Clients, error)

Jump to

Keyboard shortcuts

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