Documentation
¶
Index ¶
- func ComposeDown(caseHome string) error
- func ComposeProjectName(caseHome string) string
- func CopyCoreLogs()
- func CreateDockerClient(opt ...docker.Opt) (client *docker.Client, err error)
- func ForceShutDown() error
- func GetPhysicalAddress(virtual string) string
- func Load(bootType BootType) error
- func RemoveLeftoverE2EContainers() error
- func ShutDown() error
- func Start(ctx context.Context) error
- func TryCopyCoreLogs()
- type BootType
- type Booter
- type ComposeBenchmarkBooter
- type ComposeBooter
- type StrategyWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposeDown ¶
ComposeDown stops and removes containers for the given case compose file.
func ComposeProjectName ¶
ComposeProjectName returns the hashed docker-compose project name for a test case directory.
func CopyCoreLogs ¶
func CopyCoreLogs()
func CreateDockerClient ¶
func ForceShutDown ¶
func ForceShutDown() error
ForceShutDown is an alias for ShutDown; always tears down compose and removes orphans.
func GetPhysicalAddress ¶
func RemoveLeftoverE2EContainers ¶
func RemoveLeftoverE2EContainers() error
RemoveLeftoverE2EContainers force-removes E2E containers for the current or given case project.
func ShutDown ¶
func ShutDown() error
ShutDown stops compose and removes any leftover E2E containers (even if Start failed).
func Start ¶
Start initialize the virtual environment and execute setup commands on the host machine.
func TryCopyCoreLogs ¶
func TryCopyCoreLogs()
TryCopyCoreLogs exports loongcollector logs to test/e2e/report/<case>_log/ for debugging.
Types ¶
type ComposeBenchmarkBooter ¶
type ComposeBenchmarkBooter struct {
// contains filtered or unexported fields
}
ComposeBooter control docker-compose to start or stop containers.
func NewComposeBenchmarkBooter ¶
func NewComposeBenchmarkBooter() *ComposeBenchmarkBooter
NewComposeBooter create a new compose booter.
func (*ComposeBenchmarkBooter) CopyCoreLogs ¶
func (c *ComposeBenchmarkBooter) CopyCoreLogs()
func (*ComposeBenchmarkBooter) Start ¶
func (c *ComposeBenchmarkBooter) Start(ctx context.Context) error
func (*ComposeBenchmarkBooter) Stop ¶
func (c *ComposeBenchmarkBooter) Stop() error
type ComposeBooter ¶
type ComposeBooter struct {
// contains filtered or unexported fields
}
ComposeBooter control docker-compose to start or stop containers.
func NewComposeBooter ¶
func NewComposeBooter() *ComposeBooter
NewComposeBooter create a new compose booter.
func (*ComposeBooter) CopyCoreLogs ¶
func (c *ComposeBooter) CopyCoreLogs()
func (*ComposeBooter) Stop ¶
func (c *ComposeBooter) Stop() error
type StrategyWrapper ¶
type StrategyWrapper struct {
// contains filtered or unexported fields
}
StrategyWrapper caches the real wait.StrategyTarget to get the metadata of the running containers.
func (*StrategyWrapper) WaitUntilReady ¶
func (s *StrategyWrapper) WaitUntilReady(ctx context.Context, target wait.StrategyTarget) error