config

package
v0.0.0-...-56a2066 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package config contains the configuration for a running machineserver instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceConfig

type InstanceConfig struct {
	// ConnectionString, if supplied, points to the CockroachDB database to use
	// for storage. If not supplied storage falls back to Firestore.
	ConnectionString string `json:"connection_string"`

	// Pools is a list of Pools. They are evaluated in the order they appear in
	// the config file.
	Pools []Pool `json:"pools"`
}

InstanceConfig is the config for an instance of machineserver.

type Pool

type Pool struct {
	// Name of the pool as it will appear in Dimensions at the machine.DimPool key.
	Name string `json:"name"`

	// Regex is a regular expression that matches a machine id if that machine
	// is in this pool.
	Regex string `json:"regex"`
}

Pool describes a single pool of machines.

Jump to

Keyboard shortcuts

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