package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
AddUserAuthorizedKey adds the authorized key provided to the set of keys installed on clusters managed by roachprod.
Given a machine type, return the allowed number (> 0) of local SSDs, sorted in ascending order.
DefaultProject returns the default GCE project.
DefaultProviderOpts returns a new gce.ProviderOpts with default values set.
DefaultZones is the list of zones used by default for cluster creation.
DNSDomain returns the configured DNS domain for public DNS A records.
GetUserAuthorizedKeys retrieves reads a list of user public keys from the gcloud cockroach-ephemeral project and returns them formatted for use in an authorized_keys file.
Init registers the GCE provider into vm.Providers.
Used mainly in support of https://github.com/cockroachdb/cockroach/issues/122035.
SetUserAuthorizedKeys updates the default project metadata with the keys provided.
SyncDNS replaces the configured DNS zone with the supplied hosts.
# Constants
TODO(DarrylWong): Upgrade FIPS to Ubuntu 22 when it is available.
VolumeTypePremium represents a boot disk.
VolumeTypeLocalSSD represents a local solid-state drive.
VolumeTypeStandard represents an attached persistent disk.
VolumeTypeUnknown represents an unknown volume type.
# Variables
Extracted from https://cloud.google.com/compute/docs/regions-zones#available.
# Structs
LogEntry represents a single log entry from the gcloud logging(stack driver).
ProjectsVal is the implementation for the --gce-projects flag.
Provider is the GCE implementation of the vm.Provider interface.
ProviderOpts provides user-configurable, gce-specific create options.