Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
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.
Click to show internal directories.
Click to hide internal directories.