func NewSetFrom()

in ccadb2OneCRL/ccadb/set.go [18:29]


func NewSetFrom(records CCADB) *Set {
	s := NewSet()
	if records == nil {
		return s
	}
	for _, record := range records {
		if OneCRLStatus(record.OneCRLStatus) == ReadyToAdd {
			s.Add(record)
		}
	}
	return s
}