artifacts

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcPath, destPath string) (int64, error)

CopyFile copies a file from srcPath to destPath. It returns the number of bytes copied and any error encountered.

func MkdirParents

func MkdirParents(path string, perm os.FileMode) error

MkdirParents creates all parent directories for the given path with the specified permissions.

Types

type ArtifactBroker

type ArtifactBroker struct {
	// contains filtered or unexported fields
}

func (*ArtifactBroker) AttachTestCase

func (b *ArtifactBroker) AttachTestCase(tc core.TestCase)

func (*ArtifactBroker) PublishLogFile

func (b *ArtifactBroker) PublishLogFile(name string, source string)

type ArtifactManager

type ArtifactManager struct {
	// contains filtered or unexported fields
}

func NewArtifactManager

func NewArtifactManager(suite core.SuiteContext, logDir *string) *ArtifactManager

NewArtifactManager creates a new artifact manager. If logDir is nil, no log artifacts will be saved.

func (*ArtifactManager) NewBroker

func (m *ArtifactManager) NewBroker() *ArtifactBroker

NewBroker creates a new artifact child broker that is attached to this manager. The broker must be attached to a test case before it can be used to publish artifacts.

Jump to

Keyboard shortcuts

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