Documentation
¶
Index ¶
- func CheckBillingStatus(teamId string) (bool, string)
- func CleanupAllWorkspacesInTeam(teamId string, namePrefix string)
- func CleanupTeam(teamId string)
- func CleanupWorkspace(workspaceId string)
- func ContainsAny(s string, substrings []string) bool
- func ExtractTeamId(output string) string
- func ExtractWorkspaceId(output string) string
- func GenerateTLSCerts(outputDir string, serverCN string, serverSANs []string) (caCertPath, serverCertPath, serverKeyPath string, err error)
- func GetEphemeralPort() (int, error)
- func RunCommand(args ...string) string
- func RunCommandInBackground(outputBuffer *bytes.Buffer, args ...string) *exec.Cmd
- func RunCommandWithExitCode(args ...string) (string, int)
- func SkipIfMissingEnvVars() (teamId, token string)
- func StartTestHttpServer(port int) (*http.Server, error)
- func StartTestHttpsServer(port int, certFile, keyFile string) (*http.Server, error)
- func VerifyWorkspaceDeleted(workspaceId, teamId string) bool
- func VerifyWorkspaceExists(workspaceId, teamId string) bool
- func WaitForPort(addr string, timeout time.Duration)
- func WaitForWorkspaceRunning(client *api.Client, workspaceId int, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBillingStatus ¶ added in v0.14.2
func CleanupAllWorkspacesInTeam ¶ added in v0.14.2
func CleanupTeam ¶ added in v0.14.2
func CleanupTeam(teamId string)
func CleanupWorkspace ¶ added in v0.14.2
func CleanupWorkspace(workspaceId string)
func ContainsAny ¶ added in v0.14.2
func ExtractTeamId ¶ added in v0.14.2
func ExtractWorkspaceId ¶ added in v0.14.2
func GenerateTLSCerts ¶
func GenerateTLSCerts(outputDir string, serverCN string, serverSANs []string) (caCertPath, serverCertPath, serverKeyPath string, err error)
GenerateTLSCerts generates a CA, a server key, and a server certificate signed by the CA. It includes Subject Alternative Names (SANs) for modern TLS compliance. Returns paths to ca.crt, server.crt, and server.key.
func GetEphemeralPort ¶
GetEphemeralPort finds an available ephemeral port on localhost.
func RunCommand ¶ added in v0.14.2
func RunCommandInBackground ¶
func RunCommandWithExitCode ¶ added in v0.14.2
func SkipIfMissingEnvVars ¶ added in v0.14.2
func SkipIfMissingEnvVars() (teamId, token string)
func StartTestHttpServer ¶
Helper to start a simple HTTP server (for non-TLS tests)
func StartTestHttpsServer ¶
Helper to start a simple HTTPS server with custom certs
func VerifyWorkspaceDeleted ¶ added in v0.14.2
func VerifyWorkspaceExists ¶ added in v0.14.2
func WaitForPort ¶
WaitForPort blocks until a TCP port is listening or timeout occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.