Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/Optional homomorphic hashing #285

Merged
merged 4 commits into from
Jul 5, 2022

Conversation

carpawell
Copy link
Member

No description provided.

@carpawell carpawell added the enhancement Improving existing functionality label Jun 30, 2022
@carpawell carpawell self-assigned this Jun 30, 2022
@carpawell carpawell force-pushed the optional-homomorphic-hashing branch from d4c42da to 0710e26 Compare June 30, 2022 15:50
fyrchik
fyrchik previously approved these changes Jul 1, 2022
@carpawell carpawell force-pushed the optional-homomorphic-hashing branch 2 times, most recently from 49c9392 to 718b47e Compare July 4, 2022 15:35
@carpawell
Copy link
Member Author

Rebased after #272.

@carpawell carpawell requested a review from fyrchik July 4, 2022 15:36
container/container.go Outdated Show resolved Hide resolved
container/network.go Outdated Show resolved Hide resolved
netmap/network_info.go Outdated Show resolved Hide resolved
@carpawell carpawell requested a review from cthulhu-rider July 4, 2022 17:14
// Returns any network/parsing config errors.
//
// See also NetworkInfo, container.ApplyNetworkConfig.
func SyncContainerWithNetwork(ctx context.Context, cnr *container.Container, c *Client) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add similar function to pool package, it'd be useful in services like S3 gateway https://github.com/nspcc-dev/neofs-s3-gw/blob/5bfc54974669bfddf1e9693d9625578a8167778f/internal/neofs/neofs.go#L137.

Copy link
Member Author

@carpawell carpawell Jul 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carpawell carpawell force-pushed the optional-homomorphic-hashing branch 2 times, most recently from 05c6acc to 7a41e73 Compare July 5, 2022 10:28
@carpawell carpawell force-pushed the optional-homomorphic-hashing branch 2 times, most recently from 3474898 to 36864a8 Compare July 5, 2022 10:31
pool/pool.go Show resolved Hide resolved
netmap/network_info.go Outdated Show resolved Hide resolved
container/network.go Outdated Show resolved Hide resolved
container/container.go Outdated Show resolved Hide resolved
carpawell added 4 commits July 5, 2022 13:47
It requests network configuration and syncs it (changes if required) with
passed container.

Signed-off-by: Pavel Karpy <[email protected]>
It is a helper function that uses a `Pool` to fetch network information and
apply it to the container (change the container if it does not fit the
network). Currently, only applies the homomorphic hashing parameter.

Signed-off-by: Pavel Karpy <[email protected]>
@carpawell carpawell force-pushed the optional-homomorphic-hashing branch from 36864a8 to 572ada0 Compare July 5, 2022 10:49
@carpawell carpawell requested a review from cthulhu-rider July 5, 2022 10:49
@cthulhu-rider cthulhu-rider merged commit c6fee6d into master Jul 5, 2022
@cthulhu-rider cthulhu-rider deleted the optional-homomorphic-hashing branch July 5, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants