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)
| 372 | // operation is complete, an error is returned. The context only affects the |
| 373 | // transport operations. |
| 374 | func (s Submodules) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error { |
| 375 | for _, sub := range s { |
| 376 | if err := sub.UpdateContext(ctx, o); err != nil { |
| 377 | return err |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | return nil |
| 382 | } |
| 383 | |
| 384 | // Status returns the status of the submodules. |
| 385 | func (s Submodules) Status() (SubmodulesStatus, error) { |