Documentation ¶
Index ¶
- func IsSnapDir(path string) bool
- func NewContainerFromDir(path string) snap.Container
- type SnapDir
- func (s *SnapDir) Install(targetPath, mountDir string, opts *snap.InstallOptions) (bool, error)
- func (s *SnapDir) ListDir(path string) ([]string, error)
- func (s *SnapDir) Lstat(file string) (os.FileInfo, error)
- func (s *SnapDir) Path() string
- func (s *SnapDir) RandomAccessFile(file string) (interface{ ... }, error)
- func (s *SnapDir) ReadFile(file string) (content []byte, err error)
- func (s *SnapDir) ReadLink(file string) (string, error)
- func (s *SnapDir) Size() (size int64, err error)
- func (s *SnapDir) Unpack(src, dstDir string) error
- func (s *SnapDir) Walk(relative string, walkFn filepath.WalkFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContainerFromDir ¶
NewContainerFromDir returns a snap.Container that is implemented by a SnapDir. It should be used as the implementation of snap.NewContainerFromDir.
Types ¶
Click to show internal directories.
Click to hide internal directories.