provider

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

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)

func New

func New(version string) func() *schema.Provider

Types

type Error added in v0.1.0

type Error struct {
	// contains filtered or unexported fields
}

func (Error) Error added in v0.1.0

func (e Error) Error() string

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) StatFile added in v0.1.2

func (c *RemoteClient) StatFile(path string, char string, sudo bool) (string, error)

func (*RemoteClient) WriteFile

func (c *RemoteClient) WriteFile(content string, path string, permissions string, sudo bool) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL