gopass: github.com/justwatchcom/gopass/pkg/tempfile Index | Files

package tempfile

import "github.com/justwatchcom/gopass/pkg/tempfile"

Index

Package Files

file.go mount_linux.go

type File Uses

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

File is a temporary file

func New Uses

func New(ctx context.Context, prefix string) (*File, error)

New returns a new tempfile wrapper

func (*File) Close Uses

func (t *File) Close() error

Close implements io.WriteCloser

func (*File) Name Uses

func (t *File) Name() string

Name returns the name of the tempfile

func (*File) Remove Uses

func (t *File) Remove(ctx context.Context) error

Remove attempts to remove the tempfile

func (*File) Write Uses

func (t *File) Write(p []byte) (int, error)

Write implement io.Writer

Package tempfile imports 7 packages (graph). Updated 2019-11-12. Refresh now. Tools for package owners.