Documentation ¶
Index ¶
- Constants
- func GenerateRandomHexString(length int) (string, error)
- func GetNeverSynced() time.Time
- func HasBeenSynced(lastCloudUpdate time.Time) bool
- func InSlice(item string, slice []string) bool
- func PathExists(path string) (bool, error)
- func RealPath(path string) (string, error)
- type AESGCMEncryptor
- type Logger
- type NopEncryptor
- type ReaderEncryptor
Constants ¶
View Source
const (
TimeFormat = "2006-01-02T15:04:05.000Z"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomHexString ¶ added in v0.1.18
GenerateRandomHexString generates a random hex string of the desired length.
func GetNeverSynced ¶ added in v0.1.3
Returns a time used to signify that a file has never been synced.
func HasBeenSynced ¶ added in v0.1.3
Returns true if the file has been synced based on the last cloud update.
func PathExists ¶
Types ¶
type AESGCMEncryptor ¶ added in v0.1.10
type AESGCMEncryptor struct {
Key []byte
}
func (*AESGCMEncryptor) DecryptReader ¶ added in v0.1.10
func (e *AESGCMEncryptor) DecryptReader(reader io.ReadCloser) (io.ReadCloser, error)
func (*AESGCMEncryptor) EncryptReader ¶ added in v0.1.10
type NopEncryptor ¶ added in v0.1.15
type NopEncryptor struct{}
func (*NopEncryptor) DecryptReader ¶ added in v0.1.15
func (e *NopEncryptor) DecryptReader(reader io.ReadCloser) (io.ReadCloser, error)
func (*NopEncryptor) EncryptReader ¶ added in v0.1.15
type ReaderEncryptor ¶ added in v0.1.10
type ReaderEncryptor interface { EncryptReader(reader io.Reader) (io.Reader, error) DecryptReader(reader io.ReadCloser) (io.ReadCloser, error) }
Click to show internal directories.
Click to hide internal directories.