artifacts

package
v0.4.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 8 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) PublishArtifact

func (b *ArtifactBroker) PublishArtifact(destination string, source string)

PublishArtifact implements storm/artifacts.ArtifactBroker.

func (*ArtifactBroker) PublishArtifactData

func (b *ArtifactBroker) PublishArtifactData(destination string, data []byte)

PublishArtifactData implements storm/artifacts.ArtifactBroker.

func (*ArtifactBroker) PublishLogFile

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

PublishLogFile implements storm/artifacts.ArtifactBroker.

func (*ArtifactBroker) StreamArtifactData

func (b *ArtifactBroker) StreamArtifactData(destination string) io.WriteCloser

StreamArtifactData implements storm/artifacts.ArtifactBroker.

func (*ArtifactBroker) UploadArtifact

func (b *ArtifactBroker) UploadArtifact(name string, directory string, source string)

UploadArtifact implements storm/artifacts.ArtifactBroker.

type ArtifactManager

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

func NewArtifactManager

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

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