powershell

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFileOrDirectory added in v1.2.0

func DeleteFileOrDirectory(client *winrm.Client, filePath string) error

func DirectoryExists added in v1.2.0

func DirectoryExists(client *winrm.Client, directoryPath string) (bool, error)

func FileExists added in v1.2.0

func FileExists(client *winrm.Client, filePath string) (bool, error)

func ResolvePath

func ResolvePath(client *winrm.Client, filePath string) (string, error)

func RunPowershell

func RunPowershell(client *winrm.Client, elevatedUser string, elevatedPassword string, vars string, commandText string) (exitStatus int, stdout string, stderr string, err error)

Run powershell

func TimeOrderedUUID

func TimeOrderedUUID() string

func UploadDirectory added in v1.2.0

func UploadDirectory(client *winrm.Client, rootPath string, excludeList []string) (remoteRootPath string, remoteAbsolutePaths []string, err error)

func UploadFile added in v1.2.0

func UploadFile(client *winrm.Client, filePath string, remoteFilePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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