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

Consistent TUF Files #474

Merged
merged 5 commits into from
Jan 24, 2016
Merged

Consistent TUF Files #474

merged 5 commits into from
Jan 24, 2016

Conversation

endophage
Copy link
Contributor

Allows downloading TUF files by hash. Forward compatible for when we add Sha384/Sha512.

@endophage endophage changed the title WIP: Consistent WIP: Consistent TUF Files Jan 19, 2016
@endophage endophage force-pushed the consistent branch 3 times, most recently from 375aa3f to fbfd710 Compare January 19, 2016 22:28
@endophage endophage changed the title WIP: Consistent TUF Files Consistent TUF Files Jan 19, 2016
@endophage endophage force-pushed the consistent branch 2 times, most recently from 505f6ad to ae37d01 Compare January 20, 2016 00:51
logger.Debug("200 GET snapshot")
w.Write(out)
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

it's great to see this red and the new simplification 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

🎆

@endophage endophage force-pushed the consistent branch 2 times, most recently from 7ebfc37 to fa06bd6 Compare January 20, 2016 18:27
@@ -0,0 +1,89 @@
package handlers
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if logic.go is a good name for this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Just didn't want to get hung up on a filename which is irrelevant in the context of Go. Happy to change it to anything else but I haven't come up with a good name for it :-/

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe roles.go? I'm not sold on that name either but seems a little more descriptive

@endophage
Copy link
Contributor Author

@cyli I think I've addressed your requests to add a second timestamp in the tests. I now create and add 2 timestamps and try to get the older one by checksum.

@cyli
Copy link
Contributor

cyli commented Jan 22, 2016

Aside from the file renaming, if you want to do it, this LGTM!

@endophage
Copy link
Contributor Author

@cyli @riyazdf renamed logic.go and test file to role.go

@riyazdf
Copy link
Contributor

riyazdf commented Jan 22, 2016

LGTM!

David Lawrence added 5 commits January 24, 2016 10:38
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
…asier to manage filename system

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
endophage added a commit that referenced this pull request Jan 24, 2016
@endophage endophage merged commit 3c874f3 into notaryproject:master Jan 24, 2016
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.

5 participants