ContainerReferences

Container’s managed references that can be created from container configuration.

Implements: ManagedReferences

Description

The ContainerReferences class allows you to create container’s managed references that can be created from a container configuration.

Constructors

NewContainerReferences

Creates a new instance of the references

NewContainerReferences() *ContainerReferences

Methods

PutFromConfig

Puts components into the references from the container’s configuration.

Throws CreateError when one of component cannot be created.

(c *ContainerReferences) PutFromConfig(ctx context.Context, config config.ContainerConfig) error

  • ctx: context.Context - operation context.
  • config: config.ContainerConfig - container’s configuration with information of the components to be added.
  • returns: error - returns error if not put

See also