// ID extracts the ID value from an LDAP user entry
558503
func (d *LDAPUserAttributeDefiner) ID(user *ldap.Entry) string {
	// support binary ID fields as those the only stable identifiers in some environments
	return GetRawAttributeValue(user, d.attributeMapping.ID)
}
14028
func (session *Session) ID(id interface{}) *Session {
	session.Statement.Id(id)
	return session
}
500995
func (g *Group) Id(name string) *Statement {
	s := Id(name)
	g.items = append(g.items, s)
	return s
}
1270821
func (s Session) ID() string {
	if sessionIDStr, ok := s[SessionIDKey]; ok {
		return sessionIDStr.(string)
	}

	buffer := uuid.NewV4()

	s[SessionIDKey] = hex.EncodeToString(buffer.Bytes())
	return s[SessionIDKey].(string)
}
304567
func (s *XPackWatcherDeleteWatchService) Id(id string) *XPackWatcherDeleteWatchService {
	s.id = id
	return s
}
395527
func (s *DeleteTemplateService) Id(id string) *DeleteTemplateService {
	s.id = id
	return s
}
671788
func (i Identity) ID() string {
	out := i.Name
	if i.Comment != "" {
		out += " (" + i.Comment + ")"
	}
	out += " <" + i.Email + ">"
	return out
}
1015345
func (c *Client) ID() platform.ID {
	// if any error occurs return a random number
	id := platform.ID(rand.Int63())
	err := c.db.View(func(tx *bolt.Tx) error {
		val, err := c.getID(tx)
		if err != nil {
			return err
		}

		id = val
		return nil
	})

	if err != nil {
		c.Logger.Error("unable to load id", zap.Error(err))
	}

	return id
}
65390
func ID(id string) Option {
	return func(c Cache) error {
		switch oc := c.(type) {
		case *cache:
			oc.id = id
			return nil
		default:
			return errors.New(ErrIllegalCache, errorMessages)
		}
	}
}
539246
func (g *graphMemoizer) ID(ctx context.Context) string {
	return g.g.ID(ctx)
}
578978
func (s *XPackWatcherPutWatchService) Id(id string) *XPackWatcherPutWatchService {
	s.id = id
	return s
}
707544
func (o *ociInstance) Id() instance.Id {
	return instance.Id(*o.raw.Id)
}
1184573
func (session *Session) ID(id interface{}) *Session {
	session.statement.ID(id)
	return session
}
1011265
func (s *IngestPutPipelineService) Id(id string) *IngestPutPipelineService {
	s.id = id
	return s
}
1012604
func (self *Temp) Id() string {
	return fmt.Sprintf("%02x:%02x", self.id>>8, self.id&0xff)
}
1060163
func (mpi *MempoolInfo) ID() uint64 {
	mpi.RLock()
	defer mpi.RUnlock()
	return mpi.Ident
}
86194
func (m YearMapper) ID(ti ...interface{}) (rowIDs []int64, err error) {
	t := ti[0].(time.Time)
	return []int64{int64(t.Year())}, nil
}