Documentation
¶
Index ¶
- type Host
- type Netlify
- func (a *Netlify) DeleteNetlifySite(token string, siteID string) error
- func (a *Netlify) Deploy(localPath string) (host.Result, error)
- func (a *Netlify) DeployExistingNetlifySite(token string, target string, siteID string) (valueobject.DeployResult, error)
- func (a *Netlify) DeployNewNetlifySite(token string, target string, siteName string, domain string) (valueobject.DeployResult, error)
- type SCPHost
- func (h *SCPHost) Close() error
- func (h *SCPHost) Connect() error
- func (h *SCPHost) CreateRemoteDirectory(path string) error
- func (h *SCPHost) Deploy(localPath string) (host.Result, error)
- func (h *SCPHost) DeployWithTar(localPath string) (host.Result, error)
- func (h *SCPHost) OnProgress(current, total int64)
- func (h *SCPHost) SetLogger(logger loggers.Logger)
- func (h *SCPHost) SetProgress(callback func(current, total int64))
- func (h *SCPHost) SetStrictHostKeyChecking(strict bool)
- func (h *SCPHost) UploadDirectory(localPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Netlify ¶
type Netlify struct {
// contains filtered or unexported fields
}
func NewNetlify ¶
func NewNetlifyWithConfig ¶ added in v0.1.24
func NewNetlifyWithConfig(config *valueobject.NetlifyConfig) (*Netlify, error)
NewNetlifyWithConfig creates a new Netlify instance with the provided configuration
func (*Netlify) DeleteNetlifySite ¶
func (*Netlify) DeployExistingNetlifySite ¶
func (a *Netlify) DeployExistingNetlifySite(token string, target string, siteID string) (valueobject.DeployResult, error)
func (*Netlify) DeployNewNetlifySite ¶
func (a *Netlify) DeployNewNetlifySite(token string, target string, siteName string, domain string) (valueobject.DeployResult, error)
type SCPHost ¶ added in v0.1.22
type SCPHost struct {
HostKeyFile string // Path to known_hosts file
// StrictHostKeyChecking controls whether to strictly verify host keys
StrictHostKeyChecking bool
// contains filtered or unexported fields
}
SCPHost represents a remote host that supports SCP file transfer
func NewSCPHost ¶ added in v0.1.22
func NewSCPHost(config *valueobject.SCPConfig, auth host.AuthMethod) *SCPHost
NewSCPHost creates a new SCPHost instance with password authentication
func (*SCPHost) CreateRemoteDirectory ¶ added in v0.1.22
CreateRemoteDirectory creates a directory on the remote host
func (*SCPHost) DeployWithTar ¶ added in v0.1.22
DeployWithTar implements the Deployer interface using tar compression
func (*SCPHost) OnProgress ¶ added in v0.1.24
OnProgress implements the ProgressTracker interface
func (*SCPHost) SetProgress ¶ added in v0.1.24
SetProgress sets the progress callback function
func (*SCPHost) SetStrictHostKeyChecking ¶ added in v0.1.25
SetStrictHostKeyChecking enables or disables strict host key checking
func (*SCPHost) UploadDirectory ¶ added in v0.1.22
UploadDirectory recursively uploads a directory to the remote host