files

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

func (*Service) ListDir

func (s *Service) ListDir(ctx context.Context, dir string) ([]initd.FSEntry, error)

func (*Service) Mkdir

func (s *Service) Mkdir(ctx context.Context, path string) error

func (*Service) OpenFile

func (s *Service) OpenFile(ctx context.Context, path string) (*os.File, error)

func (*Service) Remove

func (s *Service) Remove(ctx context.Context, path string) error

Remove implements initd.FileService.

func (*Service) Rename

func (s *Service) Rename(ctx context.Context, oldPath string, newPath string) error

func (*Service) Stat

func (s *Service) Stat(ctx context.Context, path string) (*initd.FSEntry, error)

func (*Service) WatchDir

func (s *Service) WatchDir(ctx context.Context, path string) (<-chan initd.WatchFSEvent, error)

func (*Service) WriteFile

func (s *Service) WriteFile(ctx context.Context, p string, content io.Reader) error

Jump to

Keyboard shortcuts

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