func (c *GardenCollector) Fetch(ctx context.Context, entity string) ([]string, []string, []string, error) {
	_, cid := containers.SplitEntityName(entity)
	tagsByInstanceGUID, err := c.extractTags(config.Datadog.GetString("bosh_id"))
	if err != nil {
		return []string{}, []string{}, []string{}, err
	}
	tags, ok := tagsByInstanceGUID[cid]
	if !ok {
		return []string{}, []string{}, []string{}, fmt.Errorf("could not find tags for app %s", cid)
	}
	return []string{}, []string{}, tags, nil
}
// Fetch gets the tags for a specific entity
Fetch gets the tags for a specific entity
// Fetch gets the tags for a specific entity
func (c *GardenCollector) Fetch(ctx context.Context, entity string) ([]string, []string, []string, error) {
	_, cid := containers.SplitEntityName(entity)
	tagsByInstanceGUID, err := c.extractTags(config.Datadog.GetString("bosh_id"))
	if err != nil {
		return []string{}, []string{}, []string{}, err
	}
	tags, ok := tagsByInstanceGUID[cid]
	if !ok {
		return []string{}, []string{}, []string{}, fmt.Errorf("could not find tags for app %s", cid)
	}
	return []string{}, []string{}, tags, nil
}
func ( c * GardenCollector ) Fetch ( ctx context . Context , entity string ) ( [ ] string , [ ] string , [ ] string , error ) { _ , cid := containers . SplitEntityName ( entity ) tagsByInstanceGUID , err := c . extractTags ( config . Datadog . GetString ( " " ) ) if err != nil { return [ ] string { } , [ ] string { } , [ ] string { } , err } tags , ok := tagsByInstanceGUID [ cid ] if ! ok { return [ ] string { } , [ ] string { } , [ ] string { } , fmt . Errorf ( " " , cid ) } return [ ] string { } , [ ] string { } , tags , nil }
Fetch gets the tags for a specific entity
Fetch gets the tags for a specific entity