Documentation ¶
Index ¶
- type Configuration
- func (c *Configuration) AddFile(filename string, content string)
- func (c *Configuration) AddFilePath(filename, filePath, manifestFilePath string) error
- func (c *Configuration) Backup(target string) error
- func (c *Configuration) Debug()
- func (c *Configuration) Download(conn ssh.Connection, source string, prefix string) error
- func (c *Configuration) Get(filename string) (string, error)
- func (c *Configuration) UploadTo(conn ssh.Connection, directory string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
Configuration holds a map of generated files
func (*Configuration) AddFile ¶
func (c *Configuration) AddFile(filename string, content string)
AddFile save file contents for future references
func (*Configuration) AddFilePath ¶
func (c *Configuration) AddFilePath(filename, filePath, manifestFilePath string) error
AddFilePath saves file contents from a file on filesystem for future references
func (*Configuration) Backup ¶
func (c *Configuration) Backup(target string) error
Backup dumps the files into a .tar.gz archive.
func (*Configuration) Debug ¶
func (c *Configuration) Debug()
Debug list filenames and their size to the standard output
func (*Configuration) Download ¶
func (c *Configuration) Download(conn ssh.Connection, source string, prefix string) error
Download a files matching `source` pattern
func (*Configuration) Get ¶
func (c *Configuration) Get(filename string) (string, error)
Get returns contents of the generated file by filename
func (*Configuration) UploadTo ¶
func (c *Configuration) UploadTo(conn ssh.Connection, directory string) error
UploadTo directory all the files
Click to show internal directories.
Click to hide internal directories.