NewRegistry creates a new container registry
(ctx *common.Context)
| 28 | |
| 29 | // NewRegistry creates a new container registry |
| 30 | func NewRegistry(ctx *common.Context) *Registry { |
| 31 | return &Registry{ |
| 32 | containers: []Container{}, |
| 33 | context: ctx, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // Register adds a container to the registry |
| 38 | func (r *Registry) Register(c Container) { |
no outgoing calls
no test coverage detected