Documentation
¶
Index ¶
- func CleanString(input string) string
- func CleanupTempDir(initialDir, tempDir string)
- func CopyToTempDir(relativePath string) (string, error)
- func CopyToTempDirInDir(baseDir, relativePath string) (string, error)
- func CopyToTempDirWithoutChdir(relativePath string) (string, error)
- func CreateTempDir() (string, error)
- func ExpectEqual(actual any, extra any, explain ...any)
- func ExpectError(err error, explain ...any)
- func ExpectNoError(err error, explain ...any)
- func ExpectNoErrorWithOffset(offset int, err error, explain ...any)
- func ExpectNotEqual(actual any, extra any, explain ...any)
- func GetTimeout() time.Duration
- func ServeAgent()
- type Framework
- func (f *Framework) DevsyBuild(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevsyContextCreate(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevsyContextDelete(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevsyContextUse(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevsyIDEList(ctx context.Context, extraArgs ...string) (string, error)
- func (f *Framework) DevsyIDEUse(ctx context.Context, ide string, extraArgs ...string) error
- func (f *Framework) DevsyList(ctx context.Context) (string, error)
- func (f *Framework) DevsyListParsed(ctx context.Context) ([]*provider2.Workspace, error)
- func (f *Framework) DevsyMachineCreate(ctx context.Context, args []string) error
- func (f *Framework) DevsyMachineDelete(ctx context.Context, args []string) error
- func (f *Framework) DevsyPortTest(ctx context.Context, port string, workspace string) error
- func (f *Framework) DevsyProviderAdd(ctx context.Context, args ...string) error
- func (f *Framework) DevsyProviderDelete(ctx context.Context, args ...string) error
- func (f *Framework) DevsyProviderFindOption(ctx context.Context, provider string, searchStr string, extraArgs ...string) error
- func (f *Framework) DevsyProviderList(ctx context.Context, extraArgs ...string) error
- func (f *Framework) DevsyProviderOptionsCheckNamespaceDescription(ctx context.Context, provider, searchStr string) error
- func (f *Framework) DevsyProviderOptionsJSON(ctx context.Context, providerName string) (string, error)
- func (f *Framework) DevsyProviderRename(ctx context.Context, oldName, newName string, args ...string) error
- func (f *Framework) DevsyProviderUpdate(ctx context.Context, args ...string) error
- func (f *Framework) DevsyProviderUse(ctx context.Context, provider string, extraArgs ...string) error
- func (f *Framework) DevsySSH(ctx context.Context, workspace string, command string) (string, error)
- func (f *Framework) DevsySSHEchoTestString(ctx context.Context, workspace string) error
- func (f *Framework) DevsySSHGpgTestKey(ctx context.Context, workspace string) error
- func (f *Framework) DevsyStatus(ctx context.Context, extraArgs ...string) (client.WorkspaceStatus, error)
- func (f *Framework) DevsyStop(ctx context.Context, workspace string) error
- func (f *Framework) DevsyUp(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevsyUpRecreate(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevsyUpReset(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevsyUpStreams(ctx context.Context, workspace string, additionalArgs ...string) (string, string, error)
- func (f *Framework) DevsyUpWithIDE(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevsyWorkspaceDelete(ctx context.Context, workspace string, extraArgs ...string) error
- func (f *Framework) DevsyWorkspaceStop(ctx context.Context, extraArgs ...string) error
- func (f *Framework) ExecCommand(ctx context.Context, captureStdOut, searchForString bool, searchString string, ...) error
- func (f *Framework) ExecCommandCapture(ctx context.Context, args []string) (string, string, error)
- func (f *Framework) ExecCommandOutput(ctx context.Context, args []string) (string, error)
- func (f *Framework) ExecCommandStdout(ctx context.Context, args []string) error
- func (f *Framework) FindWorkspace(ctx context.Context, id string) (*provider2.Workspace, error)
- func (f *Framework) SetupGPG(tmpDir string) error
- type Pod
- type PodContainer
- type PodList
- type PodSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
func CleanupTempDir ¶
func CleanupTempDir(initialDir, tempDir string)
func CopyToTempDir ¶
func CopyToTempDirInDir ¶
func CreateTempDir ¶
func ExpectEqual ¶
ExpectEqual expects the specified two are the same, otherwise an exception raises.
func ExpectError ¶
ExpectError expects an error happens, otherwise an exception raises.
func ExpectNoError ¶
ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
func ExpectNoErrorWithOffset ¶
ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
func ExpectNotEqual ¶
ExpectNotEqual expects the specified two are not the same, otherwise an exception raises.
func GetTimeout ¶
func ServeAgent ¶
func ServeAgent()
ServeAgent will be a simple http file server that will expose our freshly compiled devsy binaries to be downloaded as agents. useful for non-linux runners.
Types ¶
type Framework ¶
func NewDefaultFramework ¶
func SetupDockerProvider ¶
SetupDockerProvider creates a new framework, removes any existing docker provider, adds a fresh one with the given docker path, and sets it as the active provider.
func (*Framework) DevsyBuild ¶
func (*Framework) DevsyContextCreate ¶
func (*Framework) DevsyContextDelete ¶
func (*Framework) DevsyContextUse ¶
func (*Framework) DevsyIDEList ¶
func (*Framework) DevsyIDEUse ¶
func (*Framework) DevsyListParsed ¶
func (*Framework) DevsyMachineCreate ¶
func (*Framework) DevsyMachineDelete ¶
func (*Framework) DevsyPortTest ¶
func (*Framework) DevsyProviderAdd ¶
func (*Framework) DevsyProviderDelete ¶
func (*Framework) DevsyProviderFindOption ¶
func (*Framework) DevsyProviderList ¶
func (*Framework) DevsyProviderOptionsCheckNamespaceDescription ¶
func (*Framework) DevsyProviderOptionsJSON ¶
func (f *Framework) DevsyProviderOptionsJSON( ctx context.Context, providerName string, ) (string, error)
DevsyProviderOptionsJSON executes `devsy provider options --output json` and returns the raw JSON.
func (*Framework) DevsyProviderRename ¶
func (f *Framework) DevsyProviderRename( ctx context.Context, oldName, newName string, args ...string, ) error
DevsyProviderRename executes the `devsy provider rename` command in the test framework.
func (*Framework) DevsyProviderUpdate ¶
func (*Framework) DevsyProviderUse ¶
func (*Framework) DevsySSHEchoTestString ¶
func (*Framework) DevsySSHGpgTestKey ¶
func (*Framework) DevsyStatus ¶
func (*Framework) DevsyUpRecreate ¶
func (*Framework) DevsyUpReset ¶
func (*Framework) DevsyUpStreams ¶
func (*Framework) DevsyUpWithIDE ¶
DevsyUp executes the `devsy up` command in the test framework.
func (*Framework) DevsyWorkspaceDelete ¶
func (*Framework) DevsyWorkspaceStop ¶
func (*Framework) ExecCommand ¶
func (f *Framework) ExecCommand( ctx context.Context, captureStdOut, searchForString bool, searchString string, args []string, ) error
ExecCommand executes the command string with the devsy test binary.
func (*Framework) ExecCommandCapture ¶
ExecCommandCapture executes the command string with the devsy test binary, and returns stdout, stderr, and any error that occurred.
func (*Framework) ExecCommandOutput ¶
ExecCommand executes the command string with the devsy test binary.
func (*Framework) ExecCommandStdout ¶
ExecCommandStdout executes the command string with the devsy test binary.
func (*Framework) FindWorkspace ¶
type PodContainer ¶
type PodContainer struct {
Image string `json:"image,omitempty"`
}
type PodSpec ¶
type PodSpec struct {
Containers []PodContainer `json:"containers,omitempty"`
}