Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct{}
Agent instance allows to get Reader and WriteCloser
func (Agent) GetReadCloser ¶
func (a Agent) GetReadCloser(path string) (io.ReadCloser, error)
GetReadCloser returns reader if file of given path exists
func (Agent) GetWriteCloser ¶
func (a Agent) GetWriteCloser(path string) (io.WriteCloser, error)
GetWriteCloser returns write close if folder in which file has to be created exists and there is no other file of given name
Click to show internal directories.
Click to hide internal directories.