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

Notary client interface type #1220

Merged
merged 3 commits into from
Sep 7, 2017

Conversation

riyazdf
Copy link
Contributor

@riyazdf riyazdf commented Sep 1, 2017

  • creates a Repository interface to standardize client.NotaryRepository
  • fixes InitializeWithCertificate to not take a notary repository as an argument

Part of #1139, originally stolen from endophage/client_interface branch

David Lawrence and others added 2 commits August 31, 2017 16:56
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
… arg

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
@endophage
Copy link
Contributor

Thanks for wrapping up the last bits of cleanup on this. Will review once CI passes.

@riyazdf
Copy link
Contributor Author

riyazdf commented Sep 1, 2017

CI is happy :) cc @HuKeping @ecordell for additional review

Copy link
Contributor

@endophage endophage left a comment

Choose a reason for hiding this comment

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

LGTM

return filepath.Walk(sourceDir, func(fp string, fi os.FileInfo, err error) error {
if err != nil {
return err
}

targetFP := filepath.Join(targetDir, strings.TrimPrefix(fp, sourceDir+"/"))
Copy link
Contributor

@HuKeping HuKeping Sep 4, 2017

Choose a reason for hiding this comment

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

Happy to see we finally get rid of the +"/"

@HuKeping
Copy link
Contributor

HuKeping commented Sep 4, 2017

Haven't check it line by line, but I like the design

// Key Operations
RotateKey(role data.RoleName, serverManagesKey bool, keyList []string) error

CryptoService() signed.CryptoService
Copy link
Contributor

Choose a reason for hiding this comment

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

s/CryptoService/GetCryptoService/g

@NathanMcCauley
Copy link
Contributor

LGTM after nit on GetCryptoService().

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
@riyazdf riyazdf merged commit e69f125 into notaryproject:master Sep 7, 2017
@riyazdf riyazdf deleted the notary-client-interface-type branch September 7, 2017 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants