config

package
v0.0.0-...-f88b001 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 1 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 {
	Octopus *Octopus `yaml:"octopus"`
}

Config holds our configuration settings

func New

func New() *Config

New starts with a default config that works with a public demo Octopus Deploy server, then overrides settings from a YAML config file and env vars if they exist.

func (*Config) Dump

func (c *Config) Dump() string

Dump returns the Octopus configuration in YAML string form

type Octopus

type Octopus struct {
	Address string `yaml:"address" default:"https://demo.octopus.com"`
	APIKey  string `yaml:"apikey" default:"API-GUEST"`
}

Octopus holds our octopus settings

Jump to

Keyboard shortcuts

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