buf: github.com/bufbuild/buf/internal/pkg/tmp Index | Files

package tmp

import "github.com/bufbuild/buf/internal/pkg/tmp"

Index

Package Files

tmp.go

type Dir Uses

type Dir interface {
    io.Closer

    AbsPath() string
}

Dir is a temporary directory.

It must be closed when done.

func NewDir Uses

func NewDir(baseDirPath string) (Dir, error)

NewDir returns a new Dir.

baseDirPath can be empty, in which case os.TempDir() is used. This directory will be deleted on interrupt signals.

type File Uses

type File interface {
    io.Closer

    AbsPath() string
}

File is a temporary file

It must be closed when done.

func NewFileWithData Uses

func NewFileWithData(data []byte) (File, error)

NewFileWithData returns a new File.

This file will be deleted on interrupt signals.

Package tmp imports 7 packages (graph) and is imported by 2 packages. Updated 2020-10-20. Refresh now. Tools for package owners.