NewPull creates a new Pull with configuration options.
(opts ...PullOpt)
| 56 | |
| 57 | // NewPull creates a new Pull with configuration options. |
| 58 | func NewPull(opts ...PullOpt) *Pull { |
| 59 | p := &Pull{} |
| 60 | for _, fn := range opts { |
| 61 | fn(p) |
| 62 | } |
| 63 | |
| 64 | return p |
| 65 | } |
| 66 | |
| 67 | // SetRegistryClient sets the registry client on the pull configuration object. |
| 68 | func (p *Pull) SetRegistryClient(client *registry.Client) { |
no outgoing calls
searching dependent graphs…