Documentation ¶
Index ¶
- func CmdRunner(program string, args ...string) *gexec.Session
- func CmdShouldFail(program string, args ...string) string
- func CmdShouldFailWithRetry(maxRetry, intervalSeconds int, program string, args ...string) string
- func CmdShouldPass(program string, args ...string) string
- func CmdShouldPassIncludeErrStream(program string, args ...string) (string, string)
- func CmdShouldRunAndTerminate(timeoutAfter time.Duration, stopChan <-chan bool, program string, ...) string
- func CmdShouldRunWithTimeout(timeout time.Duration, program string, args ...string) string
- func GetRegistryIndex(url string) []indexSchema.Schema
- func ProbeRegistry(registryUrl string, timeout int) error
- func WaitAndCheckForTerminatingState(path, resourceType, namespace string, timeoutMinutes int) bool
- func WaitForOutputToContain(substring string, timeoutInSeconds int, intervalInSeconds int, ...)
- type CmdWrapper
- type OCICatalog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdShouldFail ¶
CmdShouldFail returns stderr if command fails
func CmdShouldFailWithRetry ¶
CmdShouldFailWithRetry runs a command and checks if it fails, if it doesn't then it retries
func CmdShouldPass ¶
CmdShouldPass returns stdout if command succeeds
func CmdShouldPassIncludeErrStream ¶
CmdShouldPassIncludeErrStream returns stdout and stderr if command succeeds
func CmdShouldRunAndTerminate ¶
func CmdShouldRunAndTerminate(timeoutAfter time.Duration, stopChan <-chan bool, program string, args ...string) string
CmdShouldRunAndTerminate waits and returns stdout after a closed signal is passed on the closed channel
func CmdShouldRunWithTimeout ¶
CmdShouldRunWithTimeout waits for a certain duration and then returns stdout
func GetRegistryIndex ¶
func GetRegistryIndex(url string) []indexSchema.Schema
GetRegistryIndex downloads the registry index.json at the specified URL and returns it
func ProbeRegistry ¶
Probes a devfile registry to check if ready
func WaitAndCheckForTerminatingState ¶
WaitAndCheckForTerminatingState waits for the given interval and checks if the given resource type has been deleted on the cluster or is in the terminating state path is the path to the program's binary
Types ¶
type CmdWrapper ¶
func Cmd ¶
func Cmd(program string, args ...string) *CmdWrapper
func (*CmdWrapper) Out ¶
func (cw *CmdWrapper) Out() string
func (*CmdWrapper) OutAndErr ¶
func (cw *CmdWrapper) OutAndErr() (string, string)
func (*CmdWrapper) ShouldPass ¶
func (cw *CmdWrapper) ShouldPass() *CmdWrapper
func (*CmdWrapper) WithEnv ¶
func (cw *CmdWrapper) WithEnv(args ...string) *CmdWrapper
type OCICatalog ¶
type OCICatalog struct {
Repositories []string `json:"repositories,omitempty"`
}