Documentation
¶
Index ¶
- Variables
- type ChmodRequest
- type ChownRequest
- type CopyRequest
- type CreateDirectoryRequest
- type DeleteRequest
- type DirectoryListing
- type DirectoryStats
- type DirectoryStatsRequest
- type ErrorResponse
- type FileContent
- type FileEntry
- type Handler
- func (h *Handler) Chmod(c echo.Context) error
- func (h *Handler) Chown(c echo.Context) error
- func (h *Handler) Copy(c echo.Context) error
- func (h *Handler) CreateDirectory(c echo.Context) error
- func (h *Handler) Delete(c echo.Context) error
- func (h *Handler) DownloadFile(c echo.Context) error
- func (h *Handler) GetDirectoryStats(c echo.Context) error
- func (h *Handler) ListDirectory(c echo.Context) error
- func (h *Handler) ReadFile(c echo.Context) error
- func (h *Handler) Rename(c echo.Context) error
- func (h *Handler) UploadFile(c echo.Context) error
- func (h *Handler) WriteFile(c echo.Context) error
- type RenameRequest
- type Service
- func (s *Service) Chmod(stackName string, req ChmodRequest) error
- func (s *Service) Chown(stackName string, req ChownRequest) error
- func (s *Service) Copy(stackName string, req CopyRequest) error
- func (s *Service) CreateDirectory(stackName string, req CreateDirectoryRequest) error
- func (s *Service) Delete(stackName string, req DeleteRequest) error
- func (s *Service) GetDirectoryStats(stackName string, req DirectoryStatsRequest) (*DirectoryStats, error)
- func (s *Service) ListDirectory(stackName, path string) (*DirectoryListing, error)
- func (s *Service) ReadFile(stackName, path string) (*FileContent, error)
- func (s *Service) Rename(stackName string, req RenameRequest) error
- func (s *Service) WriteFile(stackName string, req WriteFileRequest) error
- func (s *Service) WriteUploadedFile(stackName, path string, src io.Reader, size int64, mode *string, ...) error
- type WriteFileRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide( NewService, NewHandler, ), )
Functions ¶
This section is empty.
Types ¶
type ChmodRequest ¶
type ChownRequest ¶
type CopyRequest ¶
type CreateDirectoryRequest ¶
type DeleteRequest ¶
type DeleteRequest struct {
Path string `json:"path" validate:"required"`
}
type DirectoryListing ¶
type DirectoryStats ¶
type DirectoryStatsRequest ¶
type DirectoryStatsRequest struct {
Path string `json:"path" validate:"required"`
}
type ErrorResponse ¶
type FileContent ¶
type FileEntry ¶
type FileEntry struct {
Name string `json:"name"`
Path string `json:"path"`
Size int64 `json:"size"`
IsDirectory bool `json:"is_directory"`
ModTime time.Time `json:"mod_time"`
Mode string `json:"mode"`
Owner string `json:"owner,omitempty"`
Group string `json:"group,omitempty"`
OwnerID uint32 `json:"owner_id,omitempty"`
GroupID uint32 `json:"group_id,omitempty"`
Extension string `json:"extension,omitempty"`
}
type RenameRequest ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateDirectory ¶
func (s *Service) CreateDirectory(stackName string, req CreateDirectoryRequest) error
func (*Service) GetDirectoryStats ¶
func (s *Service) GetDirectoryStats(stackName string, req DirectoryStatsRequest) (*DirectoryStats, error)
func (*Service) ListDirectory ¶
func (s *Service) ListDirectory(stackName, path string) (*DirectoryListing, error)
type WriteFileRequest ¶
Click to show internal directories.
Click to hide internal directories.