Documentation ¶
Index ¶
- func DeleteFileIfExistsE(filepath string) error
- func Execute()
- func FileChecksum(filename string) string
- func FileChecksumE(filename string) (string, error)
- func FolderChecksum(folderPath, tempFile string) string
- func FolderChecksumE(folderPath, tempFile string) (string, error)
- func GetFilesOfFolderE(folderPath string) ([]string, error)
- func GetStringFlag(flags *pflag.FlagSet, flagName string) string
- func ObjectOnS3(s3Bucket, s3Key string) bool
- func ObjectOnS3E(s3Bucket, s3Key string) (bool, error)
- func PublishIfNotAlreadyOnS3(s3Bucket, s3Key, zipFileLocation string)
- func ReadVersion(moduleFolder string) string
- func ReadVersionE(moduleFolder string) (string, error)
- func ValidateFlags(flags *pflag.FlagSet)
- func Zip(sourceFolder, zipFileLocation string)
- func ZipE(sourceFolder, zipFileLocation string) error
- func ZipModule(sourceFolder, tempDir string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFileIfExistsE ¶
DeleteFileIfExistsE will delete a file if it is present
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func FileChecksum ¶
FileChecksum computes the checksum of a file
func FileChecksumE ¶
FileChecksumE computes the checksum of a file
func FolderChecksum ¶
FolderChecksum computes the checksum of a folder(combination of checksums of all files of a folder)
func FolderChecksumE ¶
FolderChecksumE computes the checksum of a folder(combination of checksums of all files of a folder)
func GetFilesOfFolderE ¶
GetFilesOfFolderE returns all the files in a folder
func GetStringFlag ¶
GetStringFlag gets the value of a string flag with error handling
func ObjectOnS3 ¶
ObjectOnS3 checks if an object exists on S3
func ObjectOnS3E ¶
ObjectOnS3E checks if an object exists on S3
func PublishIfNotAlreadyOnS3 ¶
func PublishIfNotAlreadyOnS3(s3Bucket, s3Key, zipFileLocation string)
PublishIfNotAlreadyOnS3 uploads a file to S3 if it is not already present
func ReadVersion ¶
ReadVersion reads the VERSION.txt file from the module folder
func ReadVersionE ¶
ReadVersionE reads the VERSION.txt file from the module folder
func ValidateFlags ¶
ValidateFlags checks if the flags passed result in a compatible set
Types ¶
This section is empty.