resultsdir

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package resultsdir implements Autotest results directory creation and sealing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Path string
}

Dir represents the results directory of the task. It should be closed after all results have been written to seal the directory for upload.

func Open

func Open(path string) (*Dir, error)

Open creates the results directory and returns a Dir. Dir should be closed after all results have been written to seal the directory for upload.

func (*Dir) Close

func (d *Dir) Close(ctx context.Context) error

Close seals the results directory. This is safe to call multiple times. This is safe to call on a nil pointer.

func (*Dir) OpenSubDir

func (d *Dir) OpenSubDir(path string) (string, error)

OpenSubDir creates a sub directory under the results directory. The path is relative to the results directory.

Jump to

Keyboard shortcuts

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