Documentation
¶
Index ¶
- func RunCLI(args []string) int
- type Credentials
- type Instance
- func (i *Instance) BaseURL() string
- func (i *Instance) Credentials() (Credentials, error)
- func (i *Instance) DatabaseURL() string
- func (i *Instance) Done() <-chan struct{}
- func (i *Instance) Fake() *fakeanthropic.Fake
- func (i *Instance) Kill() error
- func (i *Instance) LogPath() string
- func (i *Instance) LogTail(n int) string
- func (i *Instance) ProcessGroupAlive() bool
- func (i *Instance) Restart(ctx context.Context) error
- func (i *Instance) Stop() error
- func (i *Instance) Terminate() error
- func (i *Instance) WaitErr() error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credentials ¶
type Credentials = credentials
Credentials is the public, secret-bearing testbed credential record. Callers must keep it in memory and never print it.
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
func Start ¶
Start boots an isolated testbed and waits until stellad is ready and fixture credentials have been created.
func (*Instance) Credentials ¶
func (i *Instance) Credentials() (Credentials, error)
func (*Instance) DatabaseURL ¶
func (*Instance) Fake ¶
func (i *Instance) Fake() *fakeanthropic.Fake
func (*Instance) ProcessGroupAlive ¶
type Options ¶
type Options struct {
RepoRoot string
Port int
FakeModel bool
// FakeStreamChunks and FakeStreamIntervalMS shape the fake model's streaming
// so perf runs can control response pacing. Zero keeps the fake's defaults.
FakeStreamChunks int
FakeStreamIntervalMS int
Bootstrap bool
Managed bool
// VaultKey is test-only injection for startup-failure coverage. Empty uses a generated identity.
VaultKey string
OmitVaultKey bool
}
Options controls one disposable Stella instance. Port zero asks the kernel for a free loopback port, which is useful for system tests.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.