<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker.git/pkg/stringid, branch master</title>
<subtitle>github.com: dotcloud/docker.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/'/>
<entry>
<title>pkg/stringid: optimize performance</title>
<updated>2022-12-16T13:44:52+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2022-12-16T13:44:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=54512f218422738013ce4de78e5a0c79f64607b8'/>
<id>54512f218422738013ce4de78e5a0c79f64607b8</id>
<content type='text'>
Had these laying around; not very critical as these functions are barely
used, but probably won't hurt:

    BenchmarkIsShortID-10       1447230     816.9 ns/op       0 B/op     0 allocs/op
    BenchmarkIsShortIDNew-10   10103319     101.9 ns/op       0 B/op     0 allocs/op
    BenchmarkValidateID-10        10000    112208 ns/op   33005 B/op    10 allocs/op
    BenchmarkValidateIDNew-10    653293      1737 ns/op   16534 B/op     6 allocs/op

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Had these laying around; not very critical as these functions are barely
used, but probably won't hurt:

    BenchmarkIsShortID-10       1447230     816.9 ns/op       0 B/op     0 allocs/op
    BenchmarkIsShortIDNew-10   10103319     101.9 ns/op       0 B/op     0 allocs/op
    BenchmarkValidateID-10        10000    112208 ns/op   33005 B/op    10 allocs/op
    BenchmarkValidateIDNew-10    653293      1737 ns/op   16534 B/op     6 allocs/op

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pkg: replace some README's with GoDoc package descriptions</title>
<updated>2022-09-30T15:11:37+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2022-09-30T15:11:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=f73d72bfdccc330f5040d6c98a7dace461598c61'/>
<id>f73d72bfdccc330f5040d6c98a7dace461598c61</id>
<content type='text'>
Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Entropy cannot be saved</title>
<updated>2019-06-07T10:54:45+00:00</updated>
<author>
<name>Justin Cormack</name>
<email>justin.cormack@docker.com</email>
</author>
<published>2019-06-07T10:21:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=2df693e533e904f432c59279c07b2b8cbeece4f0'/>
<id>2df693e533e904f432c59279c07b2b8cbeece4f0</id>
<content type='text'>
Remove non cryptographic randomness.

Signed-off-by: Justin Cormack &lt;justin.cormack@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove non cryptographic randomness.

Signed-off-by: Justin Cormack &lt;justin.cormack@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add canonical import comment</title>
<updated>2018-02-05T21:51:57+00:00</updated>
<author>
<name>Daniel Nephin</name>
<email>dnephin@docker.com</email>
</author>
<published>2018-02-05T21:05:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=4f0d95fa6ee7f865597c03b9e63702cdcb0f7067'/>
<id>4f0d95fa6ee7f865597c03b9e63702cdcb0f7067</id>
<content type='text'>
Signed-off-by: Daniel Nephin &lt;dnephin@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel Nephin &lt;dnephin@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pkg: remove random package</title>
<updated>2017-05-09T00:02:02+00:00</updated>
<author>
<name>Stephen J Day</name>
<email>stephen.day@docker.com</email>
</author>
<published>2017-05-09T00:02:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=66cfe61f71252f528ddb458d554cd241e996d9f1'/>
<id>66cfe61f71252f528ddb458d554cd241e996d9f1</id>
<content type='text'>
The unnecessary `random` package has been removed in favor of using the
`math/rand` package directly. Seeding of the random value from crypto
has been added to the `stringid` package to account for the change.

May need to add an equivalent seed to `namesgenerator`, but this is
often used with `stringid` and has collision protection.

Signed-off-by: Stephen J Day &lt;stephen.day@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The unnecessary `random` package has been removed in favor of using the
`math/rand` package directly. Seeding of the random value from crypto
has been added to the `stringid` package to account for the change.

May need to add an equivalent seed to `namesgenerator`, but this is
often used with `stringid` and has collision protection.

Signed-off-by: Stephen J Day &lt;stephen.day@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Move imageID validation to stringid pkg</title>
<updated>2016-12-27T02:53:22+00:00</updated>
<author>
<name>Tonis Tiigi</name>
<email>tonistiigi@gmail.com</email>
</author>
<published>2016-12-22T21:26:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=9f3046f9a03f1a710bdb7fcddd37ff50e71e31c3'/>
<id>9f3046f9a03f1a710bdb7fcddd37ff50e71e31c3</id>
<content type='text'>
Signed-off-by: Tonis Tiigi &lt;tonistiigi@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Tonis Tiigi &lt;tonistiigi@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Minor refactor and beter coverage for pkg/stringid</title>
<updated>2016-07-19T22:23:06+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2016-07-19T22:20:12+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=78eab14d0b2128ffaff2b3c0cd32c5339ef35ad7'/>
<id>78eab14d0b2128ffaff2b3c0cd32c5339ef35ad7</id>
<content type='text'>
This slightly simplifies TruncateID() by only
trimming the string if needed.

Also improved unit-tests for this package;

- Add a test for GenerateNonCryptoID()
- Add a test for shortening a sha-256 ID
- Make TestShortenId() more "unit", by using a fixed string, instead of calling GenerateRandomID()

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This slightly simplifies TruncateID() by only
trimming the string if needed.

Also improved unit-tests for this package;

- Add a test for GenerateNonCryptoID()
- Add a test for shortening a sha-256 ID
- Make TestShortenId() more "unit", by using a fixed string, instead of calling GenerateRandomID()

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix typos in pkg</title>
<updated>2016-04-09T13:18:15+00:00</updated>
<author>
<name>allencloud</name>
<email>allen.sun@daocloud.io</email>
</author>
<published>2016-04-09T13:18:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=aef02273d9cdf8144b95c9c9a8d1e119d24b2d9d'/>
<id>aef02273d9cdf8144b95c9c9a8d1e119d24b2d9d</id>
<content type='text'>
Signed-off-by: allencloud &lt;allen.sun@daocloud.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: allencloud &lt;allen.sun@daocloud.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos found across repository</title>
<updated>2015-12-13T16:04:12+00:00</updated>
<author>
<name>Justas Brazauskas</name>
<email>brazauskasjustas@gmail.com</email>
</author>
<published>2015-12-13T16:00:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=927b334ebfc786276a039e45ec097e71bf9a104c'/>
<id>927b334ebfc786276a039e45ec097e71bf9a104c</id>
<content type='text'>
Signed-off-by: Justas Brazauskas &lt;brazauskasjustas@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Justas Brazauskas &lt;brazauskasjustas@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update daemon and docker core to use new content addressable storage</title>
<updated>2015-11-24T17:40:25+00:00</updated>
<author>
<name>Tonis Tiigi</name>
<email>tonistiigi@gmail.com</email>
</author>
<published>2015-11-18T22:20:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/docker.git/commit/?id=4352da7803d182a6013a5238ce20a7c749db979a'/>
<id>4352da7803d182a6013a5238ce20a7c749db979a</id>
<content type='text'>
Add distribution package for managing pulls and pushes. This is based on
the old code in the graph package, with major changes to work with the
new image/layer model.

Add v1 migration code.

Update registry, api/*, and daemon packages to use the reference
package's types where applicable.

Update daemon package to use image/layer/tag stores instead of the graph
package

Signed-off-by: Aaron Lehmann &lt;aaron.lehmann@docker.com&gt;
Signed-off-by: Tonis Tiigi &lt;tonistiigi@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add distribution package for managing pulls and pushes. This is based on
the old code in the graph package, with major changes to work with the
new image/layer model.

Add v1 migration code.

Update registry, api/*, and daemon packages to use the reference
package's types where applicable.

Update daemon package to use image/layer/tag stores instead of the graph
package

Signed-off-by: Aaron Lehmann &lt;aaron.lehmann@docker.com&gt;
Signed-off-by: Tonis Tiigi &lt;tonistiigi@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
