Files
RenewCMS/internal/infrastructure/update/noFollowFilesystem_other.go
T

50 lines
1.2 KiB
Go

//go:build !linux
package update
import domain "RenewCMS/internal/domain/update"
type NoFollowFilesystem struct{}
var _ domain.HelperFilesystem = &NoFollowFilesystem{}
func NewNoFollowFilesystem() *NoFollowFilesystem {
return &NoFollowFilesystem{}
}
func (f *NoFollowFilesystem) Lstat(string) (domain.FileInfo, error) {
return domain.FileInfo{}, domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) ReadFile(string) ([]byte, error) {
return nil, domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) CreateExclusive(string, []byte, uint32) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) Copy(string, string, uint32) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) Rename(string, string) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) Remove(string) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) RemoveAll(string) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) Chmod(string, uint32) error {
return domain.ErrHelperUnsupported
}
func (f *NoFollowFilesystem) MakePrivateTempDir() (string, error) {
return "", domain.ErrHelperUnsupported
}