cloud/https: factor out Cloud Storage autocert cache
Move the Cloud Storage autocert cache to package cloud/autocert.
This package will be moved to the gcp.upspin.io repository, but
we first commit it here so that we can keep everything running
until we remove all GCP-related stuff in one fell swoop.
This change adds a CloudAutocert method to the cloud/https.Options type
which sets up the Cloud Storage autocert cache. This is just a
convenience, and it will also be removed when we remove the rest of the
To make this all work, and to take advantage of the churn to do some
tidying, we also add Addr and AutocertCache fields to the Options
struct, remove the addr and serverName arguments from ListenAndServe,
and add the OptionsFromFlags function (which will be used by the gcp
Reviewed-by: Rob Pike <email@example.com>
1 file changed
This directory contains components that are experimental or under development.