Documentation ¶
Overview ¶
dos abbreviations for "Default Operating System"
Index ¶
- Variables
- func SortFilesDec(repoFiles []goos.FileInfo)
- type ByModTime
- type File
- func (f *File) Append(data []byte)
- func (f *File) Compress(compressType string)
- func (f *File) CompressType() string
- func (f *File) Data() protocol.FileData
- func (f *File) Decode(reader io.Reader) (err protocol.Error)
- func (f *File) Encode(writer io.Writer) (err error)
- func (f *File) Len() (ln int)
- func (f *File) Marshal() (data []byte)
- func (f *File) MarshalTo(data []byte) []byte
- func (f *File) MediaType() string
- func (f *File) MetaData() protocol.FileMetaData
- func (f *File) Minify() (err protocol.Error)
- func (f *File) ParentDirectory() protocol.FileDirectory
- func (f *File) Prepend(data []byte)
- func (f *File) ReadFrom(reader io.Reader) (n int64, err error)
- func (f *File) Rename(newName string)
- func (f *File) Replace(old, new []byte, n int)
- func (f *File) ReplaceLocation(data []ReplaceReq)
- func (f *File) Save() (err protocol.Error)
- func (f *File) Unmarshal(data []byte) (err protocol.Error)
- func (f *File) WriteTo(w io.Writer) (totalWrite int64, err error)
- type FileDirectory
- func (dir *FileDirectory) Copy(uriPath, newURIPath string) (err protocol.Error)
- func (dir *FileDirectory) Delete(uriPath string) (err protocol.Error)
- func (dir *FileDirectory) Directories(offset, limit uint64) (dirs []protocol.FileDirectory)
- func (dir *FileDirectory) Directory(name string) (dr protocol.FileDirectory, err protocol.Error)
- func (dir *FileDirectory) DirectoryByPath(pathParts []string) (directory protocol.FileDirectory, err protocol.Error)
- func (dir *FileDirectory) File(name string) (file protocol.File, err protocol.Error)
- func (dir *FileDirectory) FileByPath(uriPath string) (file protocol.File, err protocol.Error)
- func (dir *FileDirectory) Files(offset, limit uint64) (files []protocol.File)
- func (dir *FileDirectory) FindFile(partName string) (files protocol.File)
- func (dir *FileDirectory) FindFileRecursively(partName string) (file *File)
- func (dir *FileDirectory) FindFiles(partName string, num uint) (files []protocol.File)
- func (dir *FileDirectory) GetDependencyRecursively(name string) *FileDirectory
- func (dir *FileDirectory) MetaData() protocol.FileDirectoryMetaData
- func (dir *FileDirectory) Move(uriPath, newURIPath string) (err protocol.Error)
- func (dir *FileDirectory) ParentDirectory() protocol.FileDirectory
- func (dir *FileDirectory) Rename(oldURIPath, newURIPath string) (err protocol.Error)
- func (dir *FileDirectory) Wipe(uriPath string) (err protocol.Error)
- type ReplaceReq
Constants ¶
This section is empty.
Variables ¶
var OS os
OS implements protocol.OperatingSystem
Functions ¶
func SortFilesDec ¶
SortFilesDec sort given slice in dec
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File store some data about a file!
func (*File) Compress ¶
Compress use to compress file data to mostly to use in serving file by servers.
func (*File) CompressType ¶
func (*File) MarshalTo ¶
MarshalTo enecodes whole file data to given data and return it with new len!
func (*File) MetaData ¶
func (f *File) MetaData() protocol.FileMetaData
func (*File) ParentDirectory ¶
func (f *File) ParentDirectory() protocol.FileDirectory
func (*File) ReplaceLocation ¶
func (f *File) ReplaceLocation(data []ReplaceReq)
Replace replace given data in the file
type FileDirectory ¶
type FileDirectory struct {
// contains filtered or unexported fields
}
FileDirectory use to store app needed data from repo like html, css, js, ...
func (*FileDirectory) Copy ¶
func (dir *FileDirectory) Copy(uriPath, newURIPath string) (err protocol.Error)
func (*FileDirectory) Delete ¶
func (dir *FileDirectory) Delete(uriPath string) (err protocol.Error)
func (*FileDirectory) Directories ¶
func (dir *FileDirectory) Directories(offset, limit uint64) (dirs []protocol.FileDirectory)
Mkdir make new directory in relative path from given directory.
func (*FileDirectory) Directory ¶
func (dir *FileDirectory) Directory(name string) (dr protocol.FileDirectory, err protocol.Error)
Directory return the directory by its name or make new one if desire name not exist.
func (*FileDirectory) DirectoryByPath ¶
func (dir *FileDirectory) DirectoryByPath(pathParts []string) (directory protocol.FileDirectory, err protocol.Error)
DirectoryByPath use to get a directory by its full path location. path is the file location in FileSystems include file name
func (*FileDirectory) File ¶
File use to get a file by its full name with extension And make new one if desire name not exist.
func (*FileDirectory) FileByPath ¶
FileByPath use to get a file by its path in the directory
func (*FileDirectory) Files ¶
func (dir *FileDirectory) Files(offset, limit uint64) (files []protocol.File)
Files use to get all files in order by name.
func (*FileDirectory) FindFile ¶
func (dir *FileDirectory) FindFile(partName string) (files protocol.File)
FindFiles use to get a file by some part of its name!
func (*FileDirectory) FindFileRecursively ¶
func (dir *FileDirectory) FindFileRecursively(partName string) (file *File)
FindFileRecursively use to get a file by its ful name with extension in recursively!
func (*FileDirectory) FindFiles ¶
func (dir *FileDirectory) FindFiles(partName string, num uint) (files []protocol.File)
FindFiles use to get a file by some part of its name!
func (*FileDirectory) GetDependencyRecursively ¶
func (dir *FileDirectory) GetDependencyRecursively(name string) *FileDirectory
GetDependencyRecursively use to get a dependency by its name in recursively!
func (*FileDirectory) MetaData ¶
func (dir *FileDirectory) MetaData() protocol.FileDirectoryMetaData
func (*FileDirectory) Move ¶
func (dir *FileDirectory) Move(uriPath, newURIPath string) (err protocol.Error)
func (*FileDirectory) ParentDirectory ¶
func (dir *FileDirectory) ParentDirectory() protocol.FileDirectory
type ReplaceReq ¶
ReplaceReq is request structure of Replace method.