files

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Size        int64     `json:"size"`
	IsDir       bool      `json:"is_dir"`
	ModTime     time.Time `json:"mod_time"`
	Permissions string    `json:"permissions"`
	ChildCount  int       `json:"child_count,omitempty"`
}

type Manager

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

func NewManager

func NewManager(deploymentsPath string) *Manager

func (*Manager) CreateDirectory

func (m *Manager) CreateDirectory(deploymentName, relativePath string) error

func (*Manager) DeleteFile

func (m *Manager) DeleteFile(deploymentName, relativePath string) error

func (*Manager) GetDiskUsage

func (m *Manager) GetDiskUsage(deploymentName string) (int64, error)

func (*Manager) GetFileInfo

func (m *Manager) GetFileInfo(deploymentName, relativePath string) (*FileInfo, error)

func (*Manager) GetMountPath

func (m *Manager) GetMountPath(deploymentName, relativePath string) (string, error)

func (*Manager) ListFiles

func (m *Manager) ListFiles(deploymentName, relativePath string) ([]FileInfo, error)

func (*Manager) ReadFile

func (m *Manager) ReadFile(deploymentName, relativePath string) (io.ReadCloser, *FileInfo, error)

func (*Manager) Rename

func (m *Manager) Rename(deploymentName, oldPath, newPath string) error

func (*Manager) WriteFile

func (m *Manager) WriteFile(deploymentName, relativePath string, content io.Reader) error

Jump to

Keyboard shortcuts

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