ioutilshim

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/ioutilshim io/ioutil BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/ioutilshim io/ioutil BUT THEN WE MODIFIED IT SO MAKE SURE TO COPY THOSE MODIFICATIONS FORWARDS

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ioutil

type Ioutil interface {
	ReadAll(r io.Reader) ([]byte, error)
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error
	ReadDir(dirname string) ([]os.FileInfo, error)
	NopCloser(r io.Reader) io.ReadCloser
	TempFile(dir, prefix string) (f osshim.File, err error)
	TempDir(dir, prefix string) (name string, err error)
}

type IoutilShim

type IoutilShim struct{}

func (*IoutilShim) NopCloser

func (sh *IoutilShim) NopCloser(r io.Reader) io.ReadCloser

func (*IoutilShim) ReadAll

func (sh *IoutilShim) ReadAll(r io.Reader) ([]byte, error)

func (*IoutilShim) ReadDir

func (sh *IoutilShim) ReadDir(dirname string) ([]os.FileInfo, error)

func (*IoutilShim) ReadFile

func (sh *IoutilShim) ReadFile(filename string) ([]byte, error)

func (*IoutilShim) TempDir

func (sh *IoutilShim) TempDir(dir string, prefix string) (name string, err error)

func (*IoutilShim) TempFile

func (sh *IoutilShim) TempFile(dir string, prefix string) (osshim.File, error)

func (*IoutilShim) WriteFile

func (sh *IoutilShim) WriteFile(filename string, data []byte, perm os.FileMode) error

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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