Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(site midas.Site, deploymentSettings midas.DeploymentSettings, isDraft bool) (midas.Deployment, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(sshConfig midas.SFTPDeploymentSettings) *Client
NewClient creates a new SFTP client.
The Client.Connect method must be called before using the client.
func (*Client) Connect ¶
Connect establishes a connection to the remote server using SFTP protocol using given configuration.
func (*Client) RemoteFiles ¶
RemoteFiles returns a list of files in the remote directory.
func (*Client) RemoveEmptyDirs ¶
RemoveEmptyDirs removes empty directories from the remote server.
func (*Client) RemoveFile ¶
RemoveFile removes a file from the remote server.
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func (*Deployment) Deploy ¶
func (d *Deployment) Deploy() error
Deploy uploads the built files to the remote SFTP server.
Click to show internal directories.
Click to hide internal directories.