func (c *GardenCollector) Pull(ctx context.Context) error {
	var tagsByInstanceGUID map[string][]string
	var tagInfo []*TagInfo
	tagsByInstanceGUID, err := c.extractTags(config.Datadog.GetString("bosh_id"))
	if err != nil {
		return err
	}
	for handle, tags := range tagsByInstanceGUID {
		entity := containers.BuildTaggerEntityName(handle)
		tagInfo = append(tagInfo, &TagInfo{
			Source:       cfCollectorName,
			Entity:       entity,
			HighCardTags: tags,
		})
	}
	c.infoOut <- tagInfo
	return nil
}
// Pull gets the list of containers
Pull gets the list of containers
// Pull gets the list of containers
func (c *GardenCollector) Pull(ctx context.Context) error {
	var tagsByInstanceGUID map[string][]string
	var tagInfo []*TagInfo
	tagsByInstanceGUID, err := c.extractTags(config.Datadog.GetString("bosh_id"))
	if err != nil {
		return err
	}
	for handle, tags := range tagsByInstanceGUID {
		entity := containers.BuildTaggerEntityName(handle)
		tagInfo = append(tagInfo, &TagInfo{
			Source:       cfCollectorName,
			Entity:       entity,
			HighCardTags: tags,
		})
	}
	c.infoOut <- tagInfo
	return nil
}
func ( c * GardenCollector ) Pull ( ctx context . Context ) error { var tagsByInstanceGUID map [ string ] [ ] string var tagInfo [ ] * TagInfo tagsByInstanceGUID , err := c . extractTags ( config . Datadog . GetString ( " " ) ) if err != nil { return err } for handle , tags := range tagsByInstanceGUID { entity := containers . BuildTaggerEntityName ( handle ) tagInfo = append ( tagInfo , & TagInfo { Source : cfCollectorName , Entity : entity , HighCardTags : tags , } ) } c . infoOut <- tagInfo return nil }
Pull gets the list of containers
Pull gets the list of containers