Documentation ¶
Index ¶
- Variables
- func AdjustRecords(dasquery dasql.DASQuery, system, api string, records []mongo.DASRecord, ...) []mongo.DASRecord
- func CRICUnmarshal(api string, data []byte) []mongo.DASRecord
- func CondDBUnmarshal(api string, data []byte) []mongo.DASRecord
- func CreateDASErrorRecord(dasquery dasql.DASQuery, pkeys []string) mongo.DASRecord
- func CreateDASRecord(dasquery dasql.DASQuery, srvs, pkeys []string) mongo.DASRecord
- func CricUrl(api string) string
- func DASHeader() mongo.DASRecord
- func DASLocalAPIs() []string
- func DBSUnmarshal(api string, data []byte) []mongo.DASRecord
- func DBSUrl(inst string) string
- func DashboardUnmarshal(api string, data []byte) []mongo.DASRecord
- func GetDASRecord(dasquery dasql.DASQuery) mongo.DASRecord
- func GetExpire(rec mongo.DASRecord) int64
- func GetMinExpire(dasquery dasql.DASQuery) int64
- func LocalAPIMap() map[string]string
- func McMUnmarshal(api string, data []byte) []mongo.DASRecord
- func MergeDASRecords(dasquery dasql.DASQuery) ([]mongo.DASRecord, int64)
- func OrderByRunLumis(records []mongo.DASRecord) []mongo.DASRecord
- func PhedexUnmarshal(api string, data []byte) []mongo.DASRecord
- func PhedexUrl() string
- func ReqMgrUnmarshal(api string, data []byte) []mongo.DASRecord
- func RucioUnmarshal(dasquery dasql.DASQuery, api string, data []byte) []mongo.DASRecord
- func RucioUrl() string
- func RunRegistryUnmarshal(api string, data []byte) []mongo.DASRecord
- func SiteDBUnmarshal(api string, data []byte) []mongo.DASRecord
- func SitedbUrl() string
- func Unmarshal(dasquery dasql.DASQuery, system, api string, r utils.ResponseType, ...) []mongo.DASRecord
- func UpdateDASRecord(qhash string, dasrecord mongo.DASRecord)
- func UpdateExpire(qhash string, records []mongo.DASRecord, dasexpire int64) []mongo.DASRecord
- type Block
- type LocalAPIs
- func (LocalAPIs) BlockRunLumi4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Blocks4TierDates(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Child4SiteReleaseDataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Configs(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricGroupResponsibilities(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricGroups(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricPeopleEmail(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricPeopleName(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricRoles(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) CricSiteNames(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Dataset4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Dataset4SiteRelease(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Dataset4SiteReleaseParent(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) DatasetList(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) File4DatasetRunLumi(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileLumi4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileLumi4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileLumiEvents4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileLumiEvents4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileRunLumi4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileRunLumi4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileRunLumiEvents4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) FileRunLumiEvents4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Files4BlockRunsSite(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Files4DatasetRunsSite(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) GroupResponsibilities(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Groups(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Lumi4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Lumi4BlockRun(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Lumi4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) PeopleEmail(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) PeopleName(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Roles(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) RunLumi4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) RunLumi4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) RunLumiEvents4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) RunLumiEvents4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Site4Block(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Site4BlockPhedex(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Site4Dataset(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Site4DatasetPct(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) Site4Dataset_phedex(dasquery dasql.DASQuery) []mongo.DASRecord
- func (LocalAPIs) SiteNames(dasquery dasql.DASQuery) []mongo.DASRecord
- type PhedexNodes
- type Replica
- type ReqMgrInfo
- type RucioRecordRSE
Constants ¶
This section is empty.
Variables ¶
var FrontendURL string
FrontendURL represents DAS frontend URL
var RucioURL string
RucioURL represents Rucio URL
var UrlMap map[string]string
Functions ¶
func AdjustRecords ¶
func AdjustRecords(dasquery dasql.DASQuery, system, api string, records []mongo.DASRecord, expire int, pkeys []string) []mongo.DASRecord
AdjustRecords adjusts DAS record and add (if necessary) leading key from DAS query
func CRICUnmarshal ¶
CRICUnmarshal unmarshals CRIC data stream and return DAS records based on api
func CondDBUnmarshal ¶
CondDBUnmarshal unmarshals CondDB data stream and return DAS records based on api
func CreateDASErrorRecord ¶
CreateDASErrorRecord creates DAS record for DAS cache
func CreateDASRecord ¶
CreateDASRecord creates DAS record for DAS cache
func DASLocalAPIs ¶
func DASLocalAPIs() []string
DASLocalAPIs contains list of __ONLY__ exceptional apis due to mistake in DAS maps
func DBSUnmarshal ¶
DBSUnmarshal unmarshals DBS data stream and return DAS records based on api
func DashboardUnmarshal ¶
DashboardUnmarshal unmarshals Dashboard data stream and return DAS records based on api
func GetDASRecord ¶
GetDASRecord gets DAS record from das cache
func GetMinExpire ¶
GetMinExpire gets DAS min expire timestamp out of DAS record
func LocalAPIMap ¶
LocalAPIMap contains a map of local APIs and their associative functions
func McMUnmarshal ¶
McMUnmarshal unmarshals McM data stream and return DAS records based on api
func MergeDASRecords ¶
MergeDASRecords merges DAS data records
func OrderByRunLumis ¶
OrderByRunLumis helper function to sort records by run and then merge lumis within a run
func PhedexUnmarshal ¶
PhedexUnmarshal unmarshals Phedex data stream and return DAS records based on api
func ReqMgrUnmarshal ¶
ReqMgrUnmarshal unmarshals ReqMgr data stream and return DAS records based on api
func RucioUnmarshal ¶
RucioUnmarshal unmarshals Rucio data stream and return DAS records based on api
func RunRegistryUnmarshal ¶
RunRegistryUnmarshal unmarshals RunRegistry data stream and return DAS records based on api
func SiteDBUnmarshal ¶
SiteDBUnmarshal unmarshals SiteDB data stream and return DAS records based on api
func Unmarshal ¶
func Unmarshal(dasquery dasql.DASQuery, system, api string, r utils.ResponseType, notations []mongo.DASRecord, pkeys []string) []mongo.DASRecord
Unmarshal generic function to unmarshal DAS record for given system/api/data/notations
func UpdateDASRecord ¶
UpdateDASRecord updates DAS record in das cache
Types ¶
type LocalAPIs ¶
type LocalAPIs struct{}
LocalAPIs structure to hold information about local APIs
func (LocalAPIs) BlockRunLumi4Dataset ¶
BlockRunLumi4Dataset finds run,lumi for given dataset
func (LocalAPIs) Blocks4TierDates ¶
Blocks4TierDates finds blocks for given tier and dates
func (LocalAPIs) Child4SiteReleaseDataset ¶
Child4SiteReleaseDataset returns child dataset for site, release and dataset
func (LocalAPIs) Configs ¶
Configs reqmgr APIs to lookup configs for given dataset The logic: we look-up ReqMgr ids for given dataset and scan them if id has length 32 we use configFile URL, otherwise we look-up record in couchdb and fetch ConfigIDs to construct configFile URL
func (LocalAPIs) CricGroupResponsibilities ¶
CricGroupResponsibilities return group responsibilities
func (LocalAPIs) CricGroups ¶
CricGroups local API returns group names
func (LocalAPIs) CricPeopleEmail ¶
CricPeopleEmail returns CRIC people via email
func (LocalAPIs) CricPeopleName ¶
CricPeopleName returns CRIC people via names
func (LocalAPIs) CricSiteNames ¶
CricSiteNames local API returns site-names
func (LocalAPIs) Dataset4Block ¶
Dataset4Block find dataset for given block
func (LocalAPIs) Dataset4SiteRelease ¶
Dataset4SiteRelease returns dataset for given site and release
func (LocalAPIs) Dataset4SiteReleaseParent ¶
Dataset4SiteReleaseParent returns dataset for given site release parent
func (LocalAPIs) DatasetList ¶
DatasetList finds dataset list
func (LocalAPIs) File4DatasetRunLumi ¶
File4DatasetRunLumi finds file for given dataset, run, lumi
func (LocalAPIs) FileLumi4Block ¶
FileLumi4Block finds file,lumi for given block
func (LocalAPIs) FileLumi4Dataset ¶
FileLumi4Dataset finds file,lumi for given dataset
func (LocalAPIs) FileLumiEvents4Block ¶
FileLumiEvents4Block finds file,lumi for given block
func (LocalAPIs) FileLumiEvents4Dataset ¶
FileLumiEvents4Dataset finds file,lumi for given dataset
func (LocalAPIs) FileRunLumi4Block ¶
FileRunLumi4Block finds file,run,lumi for given block
func (LocalAPIs) FileRunLumi4Dataset ¶
FileRunLumi4Dataset finds file,run,lumi for given dataset
func (LocalAPIs) FileRunLumiEvents4Block ¶
FileRunLumiEvents4Block finds file,run,lumi for given block
func (LocalAPIs) FileRunLumiEvents4Dataset ¶
FileRunLumiEvents4Dataset finds file,run,lumi for given dataset
func (LocalAPIs) Files4BlockRunsSite ¶
Files4BlockRunsSite combined APIs to lookup file list for give block/run/site
func (LocalAPIs) Files4DatasetRunsSite ¶
Files4DatasetRunsSite combined APIs to lookup file list for give dataset/run/site
func (LocalAPIs) GroupResponsibilities ¶
GroupResponsibilities return group responsibilities
func (LocalAPIs) Lumi4Block ¶
Lumi4Block finds lumi for given block
func (LocalAPIs) Lumi4BlockRun ¶
Lumi4BlockRun finds lumi for given block and run
func (LocalAPIs) Lumi4Dataset ¶
Lumi4Dataset finds lumi for given dataset
func (LocalAPIs) PeopleEmail ¶
PeopleEmail returns SiteDB people via email
func (LocalAPIs) PeopleName ¶
PeopleName returns SiteDB people via names
func (LocalAPIs) RunLumi4Block ¶
RunLumi4Block finds run,lumi for given block
func (LocalAPIs) RunLumi4Dataset ¶
RunLumi4Dataset finds run, lumi for given dataset
func (LocalAPIs) RunLumiEvents4Block ¶
RunLumiEvents4Block finds run,lumi for given block
func (LocalAPIs) RunLumiEvents4Dataset ¶
RunLumiEvents4Dataset finds run, lumi for given dataset
func (LocalAPIs) Site4Block ¶
Site4Block returns site info for given block we keep it for backward compatibility
func (LocalAPIs) Site4BlockPhedex ¶
Site4Block returns site info for given block based on Phedex blockReplicas
func (LocalAPIs) Site4Dataset ¶
Site4Dataset returns site info for given dataset
func (LocalAPIs) Site4DatasetPct ¶
Site4DatasetPct returns site info for given dataset
func (LocalAPIs) Site4Dataset_phedex ¶
Site4Dataset_phedex returns site info for given dataset
type PhedexNodes ¶
type PhedexNodes struct {
// contains filtered or unexported fields
}
PhedexNodes struct caches PhEDEX nodes and periodically update them
func (*PhedexNodes) NodeType ¶
func (p *PhedexNodes) NodeType(site string) string
NodeType API returns type of given node
func (*PhedexNodes) Nodes ¶
func (p *PhedexNodes) Nodes() []mongo.DASRecord
Nodes API periodically fetches PhEDEx nodes info if records still alive (fetched less than a day ago) we use the cache