UpdateContext updates all the submodules in this list. The provided Context must be non-nil. If the context expires before the operation is complete, an error is returned. The context only affects the transport operations.
(ctx context.Context, o *SubmoduleUpdateOptions)
| 306 | // operation is complete, an error is returned. The context only affects the |
| 307 | // transport operations. |
| 308 | func (s Submodules) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error { |
| 309 | for _, sub := range s { |
| 310 | if err := sub.UpdateContext(ctx, o); err != nil { |
| 311 | return err |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | return nil |
| 316 | } |
| 317 | |
| 318 | // Status returns the status of the submodules. |
| 319 | func (s Submodules) Status() (SubmodulesStatus, error) { |