ContainerConfig creates a container config given a name and image name and additional container config options
(name, image string, opts ...ContainerOpts)
| 597 | // ContainerConfig creates a container config given a name and image name |
| 598 | // and additional container config options |
| 599 | func ContainerConfig(name, image string, opts ...ContainerOpts) *runtime.ContainerConfig { |
| 600 | cConfig := &runtime.ContainerConfig{ |
| 601 | Metadata: &runtime.ContainerMetadata{ |
| 602 | Name: name, |
| 603 | }, |
| 604 | Image: &runtime.ImageSpec{Image: image}, |
| 605 | } |
| 606 | for _, opt := range opts { |
| 607 | opt(cConfig) |
| 608 | } |
| 609 | return cConfig |
| 610 | } |
| 611 | |
| 612 | // CheckFunc is the function used to check a condition is true/false. |
| 613 | type CheckFunc func() (bool, error) |
no outgoing calls
no test coverage detected
searching dependent graphs…