cloud

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 0 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cloud is what the cloud drivers share. A driver declares the variables it reads on a settings struct, which an application embeds in its configuration instead of declaring the variables itself. The driver exports that struct's declaration in the shape this package defines, for the tools that read an application without loading its packages (impulse's checks, bedrock's stack) and have to know which variables the embedding declares.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Declaration

type Declaration struct {
	// Path is the import path of the package declaring the struct, and Name the struct's
	// type name: what an embedding in an application's configuration resolves to.
	Path string
	Name string
	// Fields are the env-tagged fields in declaration order.
	Fields []Field
}

Declaration is a settings struct's declaration: where the struct is, and the env-tagged fields it declares in declaration order, each as the source writes it.

type Field

type Field struct {
	// Name is the field's name.
	Name string
	// Type is the field's type as written.
	Type string
	// Tag is the env tag's value as written: the variable and its options.
	Tag string
	// Doc is the field's doc comment without the comment markers, one line per source
	// line.
	Doc string
}

Field is one env-tagged field of a settings struct, as the source writes it.

Directories

Path Synopsis
gcp
Package gcp is the Google Cloud driver: from the variables it declares, it builds the pieces of an application that are Google's, request logs to Cloud Logging and spans to Cloud Trace.
Package gcp is the Google Cloud driver: from the variables it declares, it builds the pieces of an application that are Google's, request logs to Cloud Logging and spans to Cloud Trace.
declaration
Package declaration publishes the declaration of the Google Cloud driver's settings struct for the tools that read an application embedding it without loading its packages (impulse's checks, bedrock's stack): what gcp.Settings declares, in the shape the cloud package defines.
Package declaration publishes the declaration of the Google Cloud driver's settings struct for the tools that read an application embedding it without loading its packages (impulse's checks, bedrock's stack): what gcp.Settings declares, in the shape the cloud package defines.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL