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 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
GCP stuff.

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
server implementations).

Change-Id: I801967186b246b5f7b1ce1c23b41a2f9a9d91583
Reviewed-by: Rob Pike <>
1 file changed
tree: 8be1c69cfe981e9d80756c07e624c27b749eea86
  1. client/
  2. cmd/
  3. dir/
  4. store/

Experimental components

This directory contains components that are experimental or under development.