Documentation ¶
Index ¶
- func ConnectToAWS(awsAccessKeyId string, awsSecretAccessKey string, awsSessionToken string, ...) (*session.Session, error)
- func CreateCipher(salt_string string, passphrase_string string) (cipher.Block, error)
- func DecryptBytes(input []byte, passphrase string, salt string) ([]byte, error)
- func DecryptReader(reader grw.ByteReadCloser, passphrase string, salt string) ([]byte, error)
- func MergeConfig(v *viper.Viper, configUri string)
- func MergeConfigs(v *viper.Viper, configUris []string)
- func ParseDfl(dflUri string, dflExpression string) (dfl.Node, error)
- func ProcessInput(inputBytes []byte, inputFormat string, inputHeader []string, ...) (string, error)
- func SplitNameFormatCompression(p string) (string, string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToAWS ¶
func CreateCipher ¶
CreateCipher returns a cipher.Block given a salt and passphrase
func DecryptReader ¶
func MergeConfig ¶
MergeConfig merges a config from the given uri into the Viper config.
func MergeConfigs ¶
MergeConfigs merges an array of config from the given uris into the Viper config.
func ProcessInput ¶
func ProcessInput(inputBytes []byte, inputFormat string, inputHeader []string, inputComment string, inputLazyQuotes bool, inputSkipLines int, inputLimit int, dflExpression string, dflVars map[string]interface{}, dflUri string, outputFormat string, outputHeader []string, outputLimit int, verbose bool) (string, error)
func SplitNameFormatCompression ¶
SplitNameFormatCompression splits a filename into it's basename, format, and compression.
- *.json => ("*", "json", "") // JSON File
- *.json.bz2 => ("*", "json", "bzip2") // bzip2-compressed JSON file
- *.json.gz => ("*", "json", "gzip") // gzip-compressed JSON file
- *.json.sz => ("*", "json", "snappy") // snappy-compressed JSON file
- *.jsonl => ("*", "jsonl", "") // JSON Lines file
- *.jsonl.bz2 => ("*", "jsonl", "bzip2") // bzip2-compressed JSON Lines file
- *.jsonl.gz => ("*", "jsonl", "gzip") // gzip-compressed JSON Lines file
- *.jsonl.sz => ("*", "jsonl", "snappy") // snappy-compressed JSON Lines file
- *.yaml => ("*", "yaml", "") // YAML file
- *.yaml.bz2 => ("*", "yaml", "bzip2") // bzip2-compressed YAML file
- *.yaml.gz => ("*", "yaml", "gzip") // gzip-compressed YAML file
- *.yaml.sz => ("*", "yaml", "snappy") // Snappy-compressed YAML file
- *.hcl => ("*", "hcl", "") // HCL file
- *.hcl.bz2 => ("*", "hcl", "bzip2") // bzip2-compressed HCL file
- *.hcl.gz => ("*", "hcl", "gzip") // gzip-compressed HCL file
- *.hcl.sz => ("*", "hcl", "snappy") // Snappy-compressed HCL file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.