options

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modifier

type Modifier func(*Options)

Modifier defines options for Atmo

func ShouldRunHeadless added in v0.2.3

func ShouldRunHeadless(headless bool) Modifier

ShouldRunHeadless sets wether Atmo should operate in 'headless' mode

func ShouldWait added in v0.2.2

func ShouldWait(wait bool) Modifier

ShouldWait sets wether Atmo should wait for a bundle to become available on disk

func UseBundlePath added in v0.2.3

func UseBundlePath(path string) Modifier

UseBundlePath sets the bundle path to be used

func UseLogger

func UseLogger(logger *vlog.Logger) Modifier

UseLogger sets the logger to be used

type Options

type Options struct {
	Logger       *vlog.Logger `env:"-"`
	BundlePath   string       `env:"ATMO_BUNDLE_PATH"`
	RunSchedules *bool        `env:"ATMO_RUN_SCHEDULES,default=true"`
	Headless     *bool        `env:"ATMO_HEADLESS,default=false"`
	Wait         *bool        `env:"ATMO_WAIT,default=false"`
	ControlPlane string       `env:"ATMO_CONTROL_PLANE"`
}

Options defines options for Atmo

func NewWithModifiers

func NewWithModifiers(mods ...Modifier) *Options

Jump to

Keyboard shortcuts

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