NewContainer creates a new Container with the fully-qualified name.
(opts ...ContainerOption)
| 34 | |
| 35 | // NewContainer creates a new Container with the fully-qualified name. |
| 36 | func NewContainer(opts ...ContainerOption) (*Container, error) { |
| 37 | var c *Container |
| 38 | var err error |
| 39 | for _, opt := range opts { |
| 40 | c, err = opt(c) |
| 41 | if err != nil { |
| 42 | return nil, err |
| 43 | } |
| 44 | } |
| 45 | return c, nil |
| 46 | } |
| 47 | |
| 48 | // Container holds a reference to an optional qualified container name and set of aliases. |
| 49 | // |
no outgoing calls