storj/examples
Kaloyan Raev 99640225fd
Refactor Path type (#522)
The old paths.Path type is now replaced with the new storj.Path.

storj.Path is simply an alias to the built-in string type. As such it can be used just as any string, which simplifies a lot working with paths. No more conversions paths.New and path.String().

As an alias storj.Path does not define any methods. However, any functions applying to strings (like those from the strings package) gracefully apply to storj.Path too. In addition we have a few more functions defined:

    storj.SplitPath
    storj.JoinPaths
    encryption.EncryptPath
    encryption.DecryptPath
    encryption.DerivePathKey
    encryption.DeriveContentKey

All code in master is migrated to the new storj.Path type.

The Path example is also updated and is good for reference: /pkg/encryption/examples_test.go

This PR also resolve a nonce misuse issue in path encryption: https://storjlabs.atlassian.net/browse/V3-545
2018-10-25 23:28:16 +03:00
..
auth Lint examples folder (#391) 2018-09-28 21:08:44 +03:00
eestream Adapt storj and encryption packages (#513) 2018-10-19 16:38:13 +03:00
grpc-debug Separate storj.io packages in imports (#481) 2018-10-16 14:43:44 +03:00
metric-receiver Lint examples folder (#391) 2018-09-28 21:08:44 +03:00
metric-sender Lint examples folder (#391) 2018-09-28 21:08:44 +03:00
piecestore-cli examples: piecestore-cli use cobra directly (#409) 2018-10-02 17:48:09 +03:00
piecestore-client Satellite verification on storage node (#469) 2018-10-17 13:40:11 +02:00
pointerdb-client Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
statdb-client adds Reporter to the audit package to record failed audits (#467) 2018-10-16 13:40:34 -04:00