testcbt

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package testcbt supports the parent Bigtable behavior test without a Go SDK.

Index

Constants

View Source
const Image = "" /* 127-byte string literal not displayed */

Image is the official full Cloud SDK 592.0.0 image (cbt 1.25.7), pinned to its Linux amd64/arm64 OCI index. Only the test helper uses this image.

Variables

This section is empty.

Functions

func Endpoint

func Endpoint(port int) string

Endpoint uses the existing SSH host-access bridge to reach the runner relay.

func LookupCell

func LookupCell(output string) (row, column, value string, err error)

LookupCell parses the single row/cell emitted by this test's lookup command. Parsing is deliberately limited to the pinned CLI's default quoted format.

func Run

func Run(ctx context.Context, helper executor, endpoint, project, instance string, command ...string) (string, error)

Run executes one CLI operation, with anonymous emulator transport and explicit flags that prevent cbt's gcloud config-helper/credential fallback.

Types

type Relay

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

Relay forwards the host-access bridge to one unchanged generated endpoint. It owns its listener, connections and copying goroutines until Close returns.

func NewRelay

func NewRelay(target string) (*Relay, error)

func (*Relay) Close

func (r *Relay) Close()

func (*Relay) Port

func (r *Relay) Port() int

Jump to

Keyboard shortcuts

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