Documentation ¶
Index ¶
- func ConnectionFromResourceData(ctx context.Context, d *schema.ResourceData) (string, *ssh.ClientConfig, error)
- func New(version string) func() *schema.Provider
- type Error
- type RemoteClient
- func (c *RemoteClient) ChgrpFile(path string, group string, sudo bool) error
- func (c *RemoteClient) ChmodFile(path string, permissions string, sudo bool) error
- func (c *RemoteClient) ChownFile(path string, owner string, sudo bool) error
- func (c *RemoteClient) Close() error
- func (c *RemoteClient) DeleteFile(path string, sudo bool) error
- func (c *RemoteClient) DeleteFileSFTP(path string) error
- func (c *RemoteClient) DeleteFileShell(path string) error
- func (c *RemoteClient) FileExists(path string, sudo bool) (bool, error)
- func (c *RemoteClient) GetSCPClient() (scp.Client, error)
- func (c *RemoteClient) GetSFTPClient() (*sftp.Client, error)
- func (c *RemoteClient) GetSSHClient() *ssh.Client
- func (c *RemoteClient) ReadFile(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFileGroup(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFileGroupName(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFileOwner(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFileOwnerName(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFilePermissions(path string, sudo bool) (string, error)
- func (c *RemoteClient) ReadFileSFTP(path string) (string, error)
- func (c *RemoteClient) ReadFileShell(path string) (string, error)
- func (c *RemoteClient) StatFile(path string, char string, sudo bool) (string, error)
- func (c *RemoteClient) WriteFile(content string, path string, permissions string, sudo bool) error
- func (c *RemoteClient) WriteFileSCP(content string, path string, permissions string) error
- func (c *RemoteClient) WriteFileShell(content string, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionFromResourceData ¶ added in v0.0.18
func ConnectionFromResourceData(ctx context.Context, d *schema.ResourceData) (string, *ssh.ClientConfig, error)
Types ¶
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func NewRemoteClient ¶
func NewRemoteClient(host string, clientConfig *ssh.ClientConfig) (*RemoteClient, error)
func (*RemoteClient) ChgrpFile ¶ added in v0.0.25
func (c *RemoteClient) ChgrpFile(path string, group string, sudo bool) error
func (*RemoteClient) ChmodFile ¶ added in v0.1.0
func (c *RemoteClient) ChmodFile(path string, permissions string, sudo bool) error
func (*RemoteClient) ChownFile ¶ added in v0.0.25
func (c *RemoteClient) ChownFile(path string, owner string, sudo bool) error
func (*RemoteClient) Close ¶
func (c *RemoteClient) Close() error
func (*RemoteClient) DeleteFile ¶
func (c *RemoteClient) DeleteFile(path string, sudo bool) error
func (*RemoteClient) DeleteFileSFTP ¶ added in v0.1.0
func (c *RemoteClient) DeleteFileSFTP(path string) error
func (*RemoteClient) DeleteFileShell ¶ added in v0.1.0
func (c *RemoteClient) DeleteFileShell(path string) error
func (*RemoteClient) FileExists ¶ added in v0.1.0
func (c *RemoteClient) FileExists(path string, sudo bool) (bool, error)
func (*RemoteClient) GetSCPClient ¶
func (c *RemoteClient) GetSCPClient() (scp.Client, error)
func (*RemoteClient) GetSFTPClient ¶
func (c *RemoteClient) GetSFTPClient() (*sftp.Client, error)
func (*RemoteClient) GetSSHClient ¶
func (c *RemoteClient) GetSSHClient() *ssh.Client
func (*RemoteClient) ReadFile ¶
func (c *RemoteClient) ReadFile(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileGroup ¶ added in v0.0.25
func (c *RemoteClient) ReadFileGroup(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileGroupName ¶ added in v0.1.2
func (c *RemoteClient) ReadFileGroupName(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileOwner ¶ added in v0.0.25
func (c *RemoteClient) ReadFileOwner(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileOwnerName ¶ added in v0.1.2
func (c *RemoteClient) ReadFileOwnerName(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFilePermissions ¶ added in v0.0.25
func (c *RemoteClient) ReadFilePermissions(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileSFTP ¶ added in v0.1.0
func (c *RemoteClient) ReadFileSFTP(path string) (string, error)
func (*RemoteClient) ReadFileShell ¶ added in v0.1.0
func (c *RemoteClient) ReadFileShell(path string) (string, error)
func (*RemoteClient) WriteFileSCP ¶ added in v0.1.0
func (c *RemoteClient) WriteFileSCP(content string, path string, permissions string) error
func (*RemoteClient) WriteFileShell ¶ added in v0.1.0
func (c *RemoteClient) WriteFileShell(content string, path string) error
Click to show internal directories.
Click to hide internal directories.