Documentation ¶
Index ¶
- Variables
- func DEBUGPrintf(format string, args ...interface{})
- func DEBUGPrintln(msg string)
- func DecodeForHuman(human string) ([]byte, error)
- func EncodeForHuman(bindata []byte) string
- type Decrypter
- type Encrypter
- type ErrorResponse
- type FileMetadata
- type ServerVersionResponse
- type UploadRequest
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIVersion = 3 DEBUG = false BadBlockSizeError = errors.New("Block size is >256? WTF?") ShortReadError = errors.New("Read was truncated, but then read more data! This should never happen!") NotEnoughKeyRandomnessError = errors.New("Not enough random bytes for key! This should never happen!") NotEnoughIVRandomnessError = errors.New("Not enough random bytes for IV! This should never happen!") DataCorruptionError = errors.New("Encrypted data is corrupt!") EncrypterWeirdEOFError = errors.New("Encrypter: Read 0 bytes with no EOF!") DecrypterWeirdEOFError = errors.New("Decrypter: Read 0 bytes with no EOF!") // We use a custom base-64 encoding because: // // * '/' and '=' tend to introduce line breaks or breaks in text selection // * '/' is the path separator in S3 Encoding = base64.NewEncoding("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxzy0123456789+_").WithPadding(base64.NoPadding) )
Functions ¶
func DEBUGPrintf ¶
func DEBUGPrintf(format string, args ...interface{})
func DEBUGPrintln ¶
func DEBUGPrintln(msg string)
func DecodeForHuman ¶
Decodes binary data from the ASCII format
func EncodeForHuman ¶
Encodes binary data for human copy/pasting.
Types ¶
type Decrypter ¶
type Decrypter struct {
// contains filtered or unexported fields
}
Decrypter implements io.Reader and allows you to read out a decrypted version of a stream.
func NewDecrypter ¶
type Encrypter ¶
type Encrypter struct { TotalSize int64 // contains filtered or unexported fields }
Encrypter implements io.Reader and allows you to read out an encrypted version of a stream.
func NewEncrypter ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type FileMetadata ¶
type ServerVersionResponse ¶
type UploadRequest ¶
Click to show internal directories.
Click to hide internal directories.