Documentation
¶
Index ¶
- func FileExists(filename string) bool
- func FileIsReadable(filename string) bool
- func FormatSubcommandUsage(usageString string) string
- func ParseS3ErrorResponse(respBody io.Reader) (string, error)
- func PromptPassword(message string) (password string, err error)
- type EncryptionFileSet
- type XMLerrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists checks if a file exists in the file system. Note that this function will not check if the file is readable, or if the file is a directory, only if it exists.
func FileIsReadable ¶
FileIsReadable checks that a file exists, and is readable by the program.
func FormatSubcommandUsage ¶
FormatSubcommandUsage moves the lines in the standard usage strings around so that the usage string is indented under the help text instead of above it.
func ParseS3ErrorResponse ¶ added in v0.0.4
ParseS3ErrorResponse checks if reader stream is xml encoded and if yes unmarshals the xml response and returns it.
func PromptPassword ¶
PromptPassword creates a user prompt for inputting passwords, where all characters are masked with "*"
Types ¶
type EncryptionFileSet ¶
struct type to keep track of infiles and outfiles for encryption and decryption
type XMLerrorResponse ¶ added in v0.0.4
type XMLerrorResponse struct {
Code string `xml:"Code"`
Message string `xml:"Message"`
Resource string `xml:"Resource"`
}
struct type to unmarshall xml error response from s3 server