testutils

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCapturingTestLogger

func NewCapturingTestLogger(lvl zzzlog.Level, w io.Writer) zzzlogi.Logger

func NewCapturingVanillaTestLogger

func NewCapturingVanillaTestLogger(lvl zzzlog.Level, w io.Writer) zzzlogi.Logger

func NewTestContext

func NewTestContext(info *TestContextInfo) context.Context

func NewTestLogger

func NewTestLogger() zzzlogi.Logger

func NewVanillaTestContext

func NewVanillaTestContext() context.Context

Types

type TestContextInfo

type TestContextInfo struct {
	InspectLevel               inspect.HomelabInspectLevel
	Logger                     zzzlogi.Logger
	Version                    *version.VersionInfo
	Executor                   cmdexec.Executor
	DockerHost                 docker.APIClient
	ContainerPurgeKillAttempts uint32
	UseRealUserInfo            bool
	UseRealHostInfo            bool
	UseRealExecutor            bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL