package
5.1.6+incompatible
Repository: https://github.com/apache/trafficcontrol.git
Documentation: pkg.go.dev
# Functions
AddTenancyCheck takes a WHERE clause (can be ""), the associated queryValues (can be empty), a tenantColumnName that should provide a bigint corresponding to the tenantID of the object being checked (this may require a CAST), and an array of the tenantIDs the user has access to; it returns a where clause and associated queryValues including filtering based on tenancy.
No description provided by the author
CheckCachegroupHasTopologyBasedDeliveryServicesOnCDN returns true if the given cachegroup is assigned to any topologies with delivery services assigned on the given CDN.
CachegroupParameterAssociationExists returns whether a cachegroup parameter association with the given parameter id exists, and any error.
Returns true if the cdn exists.
CheckOriginServerInDSCG checks if a DS has ORG server and if it does, to make sure the cachegroup is part of DS.
CheckTopology returns an error if the given Topology does not exist or if one of the Topology's Cache Groups is empty with respect to the Delivery Service's CDN.
CheckTopologyOrgServerCGInDSCG checks if ORG server are part of DS.
CommitIf commits if doCommit is true at the time of execution.
GetCacheGroupNameFromID Get Cache Group name from a given ID.
GetCDNDomainFromName returns the domain, whether the cdn exists, and any error.
No description provided by the author
GetCDNIDFromName returns the ID of the CDN if a CDN with the name exists.
No description provided by the author
No description provided by the author
GetDeliveryServiceCDNsByTopology returns a slice of CDN IDs for all delivery services assigned to the given topology.
GetDeliveryServicesWithTopologies returns a list containing the delivery services in the given dsIDs list that have a topology assigned.
GetDeliveryServiceType returns the type of the deliveryservice.
GetDeliveryServiceTypeAndTopology returns the type of the deliveryservice and the name of its topology.
GetDSCDNIdFromID loads the DeliveryService's cdn ID from the database, from the delivery service ID.
GetDSIDAndCDNFromName returns the delivery service ID and cdn name given from the delivery service name, whether a result existed, and any error.
returns returns the delivery service name and cdn, whether it existed, and any error.
GetDSNameFromID loads the DeliveryService's xml_id from the database, from the ID.
GetDSRequiredCapabilitiesFromID returns the server's capabilities.
GetDSTenantIDFromXMLID fetches the ID of the Tenant to whom the Delivery Service identified by the the provided XMLID belongs.
GetFederationIDForUserIDByXMLID retrieves the ID of the Federation assigned to the user defined by userID on the Delivery Service identified by xmlid.
GetFederationNameFromID returns the federation's name, whether a federation with ID exists, or any error.
GetFederationResolversByFederationID fetches all of the federation resolvers currently assigned to a federation.
GetGlobalParams returns the value of the global param, whether it existed, or any error.
GetParam returns the value of the param, whether it existed, or any error.
GetParamNameByID returns the name of the param, whether it existed, or any error.
GetPrivLevelFromRoleID returns the priv_level associated with a role, whether it exists, and any error.
GetProfileIDFromName returns the profile's ID, whether a profile with name exists, or any error.
GetProfileNameFromID returns the profile's name, whether a profile with ID exists, or any error.
GetServerCapabilitiesFromName returns the server's capabilities.
GetServerIDFromName gets server id from a given name.
GetServerInfo returns a ServerInfo struct, whether the server exists, and an error (if one occurs).
GetServerInfosFromHostNames returns the ServerInfo structs of the given server host names or an error if any occur.
GetServerInfosFromIDs returns the ServerInfo structs of the given server IDs or an error if any occur.
No description provided by the author
GetServerInterfaces, given the IDs of one or more servers, returns all of their network interfaces mapped by their ids, or an error if one occurs during retrieval.
GetStatusByID returns a Status struct, a bool for whether or not a status of the given ID exists, and an error (if one occurs).
GetStatusByName returns a Status struct, a bool for whether or not a status of the given name exists, and an error (if one occurs).
GetTopologyCachegroups returns an array of cachegroup IDs and an array of cachegroup names for the given topology, or any error.
GetTypeIDByName reports the id of the type and whether or not a type exists with the given name.
GetUserByEmail retrieves the user with the given email.
GetUserByID returns the user with the requested ID if one exists.
ScanCachegroupsServerCapabilities, given rows of (server ID, CDN ID, cachegroup name, server capabilities), returns a map of cachegroup names to server IDs, a map of server IDs to a map of their capabilities, a map of server IDs to CDN IDs, and an error (if one occurs).
TopologyExists checks if a Topology with the given name exists.
UsernameExists reports whether or not the the given username exists as a user in the database to which the passed transaction refers.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author