Add secure option to registry

This commit is contained in:
Asim
2016-01-16 20:25:18 +00:00
parent fb25558142
commit 60ee085cbc
2 changed files with 37 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import (
type Options struct {
Timeout time.Duration
Secure bool
// Other options for implementations of the interface
// can be stored in a context
@@ -19,3 +20,10 @@ func Timeout(t time.Duration) Option {
o.Timeout = t
}
}
// Secure communication with the registry
func Secure(b bool) Option {
return func(o *Options) {
o.Secure = b
}
}