Add secure option to registry
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user