Documentation
¶
Index ¶
- func AddSSHKey(ctx context.Context, client *circleci.Client, ...) (*circleci.AddSSHKeyResponse, error)
- func Create(ctx context.Context, client *circleci.Client, orgID, name, image string) (*circleci.Sandbox, error)
- func Exec(ctx context.Context, client *circleci.Client, sandboxID, command string, ...) (*circleci.ExecResponse, error)
- func List(ctx context.Context, client *circleci.Client, orgID string) ([]circleci.Sandbox, error)
- func Prepare(ctx context.Context, claude *anthropic.Client, dockerSudo bool, ...) error
- func SSH(ctx context.Context, client *circleci.Client, sandboxID, identityFile string, ...) error
- func ShellEscape(arg string) string
- func ShellJoin(args []string) string
- func Sync(ctx context.Context, client *circleci.Client, ...) error
- type ExecResult
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prepare ¶
func Prepare(ctx context.Context, claude *anthropic.Client, dockerSudo bool, io iostream.Streams, stdin io.Reader) error
Prepare generates a Dockerfile, builds it, and runs tests inside the container.
func SSH ¶
func SSH(ctx context.Context, client *circleci.Client, sandboxID, identityFile string, args []string, io iostream.Streams) error
SSH opens a session and executes a command over SSH.
func ShellEscape ¶
ShellEscape escapes a string for safe use in a POSIX shell single-quoted context.
Types ¶
type ExecResult ¶
ExecResult holds the output of a command executed over SSH.
func ExecOverSSH ¶
ExecOverSSH connects to the sandbox via SSH-over-TLS and executes a command.
Click to show internal directories.
Click to hide internal directories.