# Packages
No description provided by the author
Package request contains logic and handlers for API routes dealing with Delivery Service Requests (DSRs).
No description provided by the author
# Functions
AddSSLKeys adds the given ssl keys to the given delivery service.
No description provided by the author
No description provided by the author
ConvertPrivateKeyToKeyPem converts an rsa.PrivateKey to be PEM encoded.
CopyURLKeys copies the URL sig keys from a delivery service in the 'copy-name' path parameter to the delivery service in the 'name' path parameter.
CreateDNSSECKeys creates DNSSEC keys for the given delivery service, updating existing keys if they exist.
CreateV30 is used to handle POST requests to create a Delivery Service at version 3.0 of the Traffic Ops API.
CreateV31 is used to handle POST requests to create a Delivery Service at version 3.1 of the Traffic Ops API.
CreateV40 is used to handle POST requests to create a Delivery Service at version 4.0 of the Traffic Ops API (and isomorphic API versions thereof, with respect to Delivery Service representations).
CreateV41 is a handler for POST requests to create Delivery Services in version 4.1 of the Traffic Ops API.
CreateV50 is used to handle POST requests to create a Delivery Service at version 5.0 of the Traffic Ops API.
DeleteOldCerts asynchronously deletes HTTPS certificates in Riak which have no corresponding delivery service in the database.
DeleteSSLKeys deletes a Delivery Service's sslkeys via a DELETE method.
DeleteURLKeysByID deletes the URL sig keys for the delivery service identified by the id in the path parameter.
DeleteURLKeysByName deletes the URL sig keys for the delivery service identified by the xmlId in the path parameter.
EncodePEMToLegacyPerlRiakFormat takes a PEM-encoded byte (typically a certificate, csr, or key) and returns the format Perl Traffic Ops used to send to Riak.
EnsureCacheURLParams ensures the given delivery service's cachrurl parameters exist on profiles of servers assigned to the delivery service.
EnsureParams ensures the given delivery service's necessary parameters exist on profiles of servers assigned to the delivery service.
EnsureTopologyBasedRequiredCapabilities ensures that at least one server per cachegroup in this delivery service's topology has this delivery service's required capabilities.
GenerateAcmeCertificates gets and saves certificates using ACME protocol from a give ACME provider.
GenerateCert generates a key and certificate for serving HTTPS.
GenerateLetsEncryptCertificates gets and saves new certificates from Let's Encrypt.
GeneratePlaceholderSelfSignedCert generates a self-signed SSL certificate as a placeholder when a new HTTPS delivery service is created or an HTTP delivery service is updated to use HTTPS.
GenerateSSLKeys generates a new private key, certificate signing request and certificate based on the values submitted.
GenerateURLKeys generates new URL sig keys for the delivery service identified by the xmlId in the path parameter.
GenerateURLSigKeys generates new URL sig keys.
GetAcmeAccountConfig returns the ACME account information from cdn.conf for a given provider.
GetAcmeCertificates gets or creates an ACME account based on the provider, then gets new certificates for the delivery service requested and saves them to Vault.
GetAcmeClient uses the ACME account information in either cdn.conf or the database to create and register an ACME client.
No description provided by the author
GetDeliveryServices can be used with a valid query and map of values to retrieve Delivery Services from the database.
GetDeliveryServicesMatchLists retrieves "Match Lists" for each of the Delivery Services having the provided XMLID(s).
No description provided by the author
No description provided by the author
No description provided by the author
GetDSTLSVersions retrieves the TLS versions explicitly supported by a Delivery Service identified by dsID.
No description provided by the author
GetInvalidCachegroupsForRequiredCapabilities returns the cachegroups that are invalid w.r.t.
No description provided by the author
GetSSlKeyExpirationInformation gets expiration information for all SSL certificates.
GetSSLKeysByXMLID fetches the deliveryservice ssl keys by the specified xmlID.
GetURLKeysByID returns the URL sig keys for a delivery service identified by the id in the path parameter.
GetURLKeysByName returns the URL sig keys for a delivery service identified by the xmlId in the path parameter.
GetXMLID loads the DeliveryService's xml_id from the database, from the ID.
MakeDNSSECKeySetFromRiakKeySet creates a DNSSECKeySet (as served by Traffic Ops) from a DNSSECKeysRiak (as stored in Riak), adding any computed data.
No description provided by the author
MakeExampleURLs creates the example URLs for a delivery service.
NewDNSProviderTrafficRouter returns a new DNSProviderTrafficRouter object.
ParseExpirationAndSansFromCert returns the expiration and SANs from a certificate.
No description provided by the author
RenewAcmeCertificate renews the SSL certificate for a delivery service if possible through ACME protocol.
RenewCertificates renews all SSL certificates that are expiring within a certain time limit.
RenewCertificatesDeprecated renews all SSL certificates that are expiring within a certain time limit with a deprecation alert.
No description provided by the author
UpdateSafe is the handler for PUT requests to /deliveryservices/{{ID}}/safe.
UpdateV30 is used to handle PUT requests to update a Delivery Service in version 3.0 of the Traffic Ops API.
UpdateV31 is used to handle PUT requests to update a Delivery Service in version 3.1 of the Traffic Ops API.
UpdateV40 is used to handle PUT requests to update a Delivery Service in version 4.0 of the Traffic Ops API (and isomorphic API versions thereof, with respect to Delivery Service representations).
UpdateV41 is used to handle PUT requests to update a Delivery Service in version 4.1 of the Traffic Ops API (and isomorphic API versions thereof, with respect to Delivery Service representations).
UpdateV50 is used to handle PUT requests to update a Delivery Service in version 5.0 of the Traffic Ops API (and isomorphic API versions thereof, with respect to Delivery Service representations).
Validate checks that the given Delivery Service is valid according to various criteria.
# 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
No description provided by the author
No description provided by the author
SelectDeliveryServicesQuery is a PostgreSQL query used to fetch Delivery Services from the Traffic Ops Database.
# Structs
AcmeInfo contains the information that will be stored for an ACME account.
No description provided by the author
No description provided by the author
DNSProviderTrafficRouter is used in the lego library and contains a database in order to store the DNS challenges for ACME protocol.
No description provided by the author
No description provided by the author
No description provided by the author
DSWithLegacyFields contains a Delivery Service along with associated fields that have been removed from its representation(s).
No description provided by the author
No description provided by the author
MyUser stores the user's information for use in ACME protocol.
No description provided by the author
No description provided by the author
RequiredCapability provides a type to define methods on.
TODeliveryService is a CRUDder implementation for Delivery Services; it's only used for GET and DELETE requests.
TODeliveryServiceOldDetails is used to store the "old" details while updating a DS.