tempdir

package
v0.100.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, repo *pb.Repository) (string, error)

New returns the path of a new temporary directory for use with the repository. The directory is removed with os.RemoveAll when ctx expires.

func NewAsRepository added in v0.96.0

func NewAsRepository(ctx context.Context, repo *pb.Repository) (*pb.Repository, string, error)

NewAsRepository is the same as New, but it returns a *pb.Repository for the created directory as well as the bare path as a string

func StartCleaning added in v0.74.0

func StartCleaning()

StartCleaning starts tempdir cleanup goroutines.

Types

This section is empty.

Jump to

Keyboard shortcuts

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