config

package
v0.0.0-...-b343553 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// AuthToken is the authentication token for the Equinix Metal API.
	AuthToken string `toml:"auth_token"`
	// MetroCode is the metro (usually a two letter code) to use for the instance.
	// See: https://deploy.equinix.com/developers/docs/metal/locations/metros/
	MetroCode string `toml:"metro_code"`
	// HardwareReservationID is the UUID representing the hardware reservation to use.
	HardwareReservationID *string `toml:"hardware_reservation_id,omitempty"`
	// ProjectID is the UUID representing the project to use.
	ProjectID string `toml:"project_id"`
}

func NewConfig

func NewConfig(cfgFile string) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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