storj/pkg
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
..
audit Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
auth Satellite verification on storage node (#469) 2018-10-17 13:40:11 +02:00
cfgstruct pkg/provider: with pkg/provider merged, make a single heavy client binary, gateway binary, and deprecate old services (#165) 2018-07-26 08:21:35 -06:00
datarepair remove ctx from repairer struct (#535) 2018-10-25 14:59:36 -04:00
dht Separate storj.io packages in imports (#481) 2018-10-16 14:43:44 +03:00
eestream Flatten internal/pkg and remove unused internal/pkg/node (#526) 2018-10-25 11:24:39 +03:00
encryption Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
kademlia PriorityQueue refactor (#500) 2018-10-24 08:24:47 -04:00
metainfo/kvmetainfo Implement buckets metainfo as a wrapper over storage/buckets (#482) 2018-10-25 19:38:53 +03:00
miniogw Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
node moved poll, removed ctx params (#531) 2018-10-25 12:11:50 -04:00
overlay Increase test coverage for overlay client Choose method (#508) 2018-10-19 10:05:31 -04:00
pb Remove EncryptionScheme from pointerdb protobuf 2018-10-24 17:05:08 -06:00
peertls Option for generating sample TLS certs for Minio GW (#525) 2018-10-24 22:17:28 +02:00
piecestore Pieces must be name spaced by Satellite (#503) 2018-10-23 18:03:35 +02:00
pointerdb Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
process give our appearence on windows some love (#429) 2018-10-16 14:48:17 -04:00
provider Separate storj.io packages in imports (#481) 2018-10-16 14:43:44 +03:00
ranger Flatten internal/pkg and remove unused internal/pkg/node (#526) 2018-10-25 11:24:39 +03:00
statdb adds Reporter to the audit package to record failed audits (#467) 2018-10-16 13:40:34 -04:00
storage Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
storj Refactor Path type (#522) 2018-10-25 23:28:16 +03:00
telemetry pkg/telemetry: use smaller mock in test (#370) 2018-09-26 17:00:54 +03:00
transport Cleanups related to transport (#475) 2018-10-15 15:04:21 +03:00
utils pkg/utils CollectErrors tests (#496) 2018-10-18 10:55:00 -06:00