package
0.0.0-20240206162536-b1c58122d943
Repository: https://github.com/craiggwilson/goke.git
Documentation: pkg.go.dev

# Functions

Archive will create an archive from the src file or directory and use the destination's extension to determine which format to use.
ArchiveTGZ will archive using tar and gzip to the destination.
ArchiveZip will zip the src into a a zipped file at the destination.
Copy copies either a file or a directory recursively.
CreateDirectory creates a directory.
CreateDirectoryR creates a directory recursively.
CreateFile creates a file.
CreateFileR creates a file ensuring all the directories are created recursively.
DirectoryExists indicates if the directory exists.
DownloadHTTP issues a GET request against the provided url and downloads the contents to the toPath.
DownloadS3 downloads an object from S3.
Env looks up an environment variable and if not found, returns the fallback.
ExitCode retrieves the exit code from an error.
FileExists indicates if the file exists.
HeadS3 checks if an object exists on S3.
IsDirectoryEmpty indicates if the directory is empty.
IsFileEmpty indicates if the file is empty.
IsNotRan indicates if command that generated the error actually ran.
LogCmd logs the command line version of the command to the context.
Move moves a file or directory.
Remove either removes a file or a directory recursively.
Run the specified command piping its output to goke's output.
RunBuffered runs the specified command and returns the actual command exectued, stdout, and stderr.
RunCmd runs the provided command.
RunOutput runs the specified command and get the command output.
Unarchive decompresses the archive according to the source's extension.
UnarchiveTGZ decompresses the src tgz file into the destination.
UnarchiveZip decompresses the src zip file into the destination.
UploadReaderToS3 uploads the contents of the provided reader to S3.
UploadS3 reads the file at the provided path and uploads the contents to S3.

# Structs

S3Object defines an S3 object.