ContainerResource.WithLifetime
Method
type ContainerResource interface { // ... omitted for brevity WithLifetime(lifetime ContainerLifetime) ContainerResource}Signature
method
WithLifetime builderSets the lifetime behavior of the container resource.
WithLifetime(lifetime ContainerLifetime) ContainerResourceParameters
lifetimeContainerLifetime The lifetime behavior of the container resource. The default behavior is Session.Returns
ContainerResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: