Documentation ¶
Index ¶
- type FileStore
- type Timeout
- func (t *Timeout) Add(name, path string) (string, error)
- func (t *Timeout) Get(id string) (string, envexec.File)
- func (t *Timeout) Len() int
- func (t *Timeout) Less(i, j int) bool
- func (t *Timeout) New() (*os.File, error)
- func (t *Timeout) Pop() any
- func (t *Timeout) Push(x any)
- func (t *Timeout) Remove(id string) bool
- func (t *Timeout) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore interface { Add(name, path string) (string, error) // Add creates a file with path to the storage, returns id Remove(string) bool // Remove deletes a file by id Get(string) (string, envexec.File) // Get file by id, nil if not exists List() map[string]string // List return all file ids to original name New() (*os.File, error) // Create a temporary file to the file store, can be added through Add to save it }
FileStore defines interface to store file
func NewFileLocalStore ¶
NewFileLocalStore create new local file store
Click to show internal directories.
Click to hide internal directories.