Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupRunner ¶
type CleanupRunner struct {
// contains filtered or unexported fields
}
CleanupRunner is a runner that deletes a workspace in the Run phase.
func NewCleanupRunner ¶
func NewCleanupRunner(client *codersdk.Client, workspaceID uuid.UUID) *CleanupRunner
type Config ¶
type Config struct {
// OrganizationID is the ID of the organization to create the workspace in.
OrganizationID uuid.UUID `json:"organization_id"`
// UserID is the ID of the user to run the test as.
UserID string `json:"user_id"`
// Request is the request to send to the Coder API to create the workspace.
// request.template_id must be set. A name will be generated if not
// specified.
Request codersdk.CreateWorkspaceRequest `json:"request"`
// NoWaitForAgents determines whether the test should wait for the workspace
// agents to connect before returning.
NoWaitForAgents bool `json:"no_wait_for_agents"`
// NoWaitForBuild determines whether the test should wait for the workspace
// build to complete before returning.
NoWaitForBuild bool `json:"no_wait_for_build"`
// Retry determines how many times to retry starting a workspace build if it
// fails.
Retry int `json:"retry"`
}
Click to show internal directories.
Click to hide internal directories.