kubernetes: k8s.io/kubernetes/vendor/github.com/spf13/afero/mem Index | Files

package mem

import "k8s.io/kubernetes/vendor/github.com/spf13/afero/mem"

Index

Package Files

dir.go dirmap.go file.go

Constants

const FilePathSeparator = string(filepath.Separator)

Variables

var (
    ErrFileClosed        = errors.New("File is closed")
    ErrOutOfRange        = errors.New("Out of range")
    ErrTooLarge          = errors.New("Too large")
    ErrFileNotFound      = os.ErrNotExist
    ErrFileExists        = os.ErrExist
    ErrDestinationExists = os.ErrExist
)

func AddToMemDir Uses

func AddToMemDir(dir *FileData, f *FileData)

func ChangeFileName Uses

func ChangeFileName(f *FileData, newname string)

func InitializeDir Uses

func InitializeDir(d *FileData)

func RemoveFromMemDir Uses

func RemoveFromMemDir(dir *FileData, f *FileData)

func SetModTime Uses

func SetModTime(f *FileData, mtime time.Time)

func SetMode Uses

func SetMode(f *FileData, mode os.FileMode)

type Dir Uses

type Dir interface {
    Len() int
    Names() []string
    Files() []*FileData
    Add(*FileData)
    Remove(*FileData)
}

type DirMap Uses

type DirMap map[string]*FileData

func (DirMap) Add Uses

func (m DirMap) Add(f *FileData)

func (DirMap) Files Uses

func (m DirMap) Files() (files []*FileData)

func (DirMap) Len Uses

func (m DirMap) Len() int

func (DirMap) Names Uses

func (m DirMap) Names() (names []string)

func (DirMap) Remove Uses

func (m DirMap) Remove(f *FileData)

type File Uses

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

func NewFileHandle Uses

func NewFileHandle(data *FileData) *File

func NewReadOnlyFileHandle Uses

func NewReadOnlyFileHandle(data *FileData) *File

func (*File) Close Uses

func (f *File) Close() error

func (File) Data Uses

func (f File) Data() *FileData

func (*File) Info Uses

func (f *File) Info() *FileInfo

func (*File) Name Uses

func (f *File) Name() string

func (*File) Open Uses

func (f *File) Open() error

func (*File) Read Uses

func (f *File) Read(b []byte) (n int, err error)

func (*File) ReadAt Uses

func (f *File) ReadAt(b []byte, off int64) (n int, err error)

func (*File) Readdir Uses

func (f *File) Readdir(count int) (res []os.FileInfo, err error)

func (*File) Readdirnames Uses

func (f *File) Readdirnames(n int) (names []string, err error)

func (*File) Seek Uses

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Stat Uses

func (f *File) Stat() (os.FileInfo, error)

func (*File) Sync Uses

func (f *File) Sync() error

func (*File) Truncate Uses

func (f *File) Truncate(size int64) error

func (*File) Write Uses

func (f *File) Write(b []byte) (n int, err error)

func (*File) WriteAt Uses

func (f *File) WriteAt(b []byte, off int64) (n int, err error)

func (*File) WriteString Uses

func (f *File) WriteString(s string) (ret int, err error)

type FileData Uses

type FileData struct {
    sync.Mutex
    // contains filtered or unexported fields
}

func CreateDir Uses

func CreateDir(name string) *FileData

func CreateFile Uses

func CreateFile(name string) *FileData

func (*FileData) Name Uses

func (d *FileData) Name() string

type FileInfo Uses

type FileInfo struct {
    *FileData
}

func GetFileInfo Uses

func GetFileInfo(f *FileData) *FileInfo

func (*FileInfo) IsDir Uses

func (s *FileInfo) IsDir() bool

func (*FileInfo) ModTime Uses

func (s *FileInfo) ModTime() time.Time

func (*FileInfo) Mode Uses

func (s *FileInfo) Mode() os.FileMode

func (*FileInfo) Name Uses

func (s *FileInfo) Name() string

Implements os.FileInfo

func (*FileInfo) Size Uses

func (s *FileInfo) Size() int64

func (*FileInfo) Sys Uses

func (s *FileInfo) Sys() interface{}

Package mem imports 9 packages (graph). Updated 2019-07-05. Refresh now. Tools for package owners.