-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
d4c42da
to
0710e26
Compare
49c9392
to
718b47e
Compare
Rebased after #272. |
// Returns any network/parsing config errors. | ||
// | ||
// See also NetworkInfo, container.ApplyNetworkConfig. | ||
func SyncContainerWithNetwork(ctx context.Context, cnr *container.Container, c *Client) error { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @alexvanin, @KirillovDenis
05c6acc
to
7a41e73
Compare
3474898
to
36864a8
Compare
Signed-off-by: Pavel Karpy <[email protected]>
Signed-off-by: Pavel Karpy <[email protected]>
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]>
36864a8
to
572ada0
Compare
No description provided.