defaults

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFileKeyFilenameFor added in v0.2.0

func AuthFileKeyFilenameFor(platform string) values.String

AuthFileKeyFilenameFor queries the AuthFileKeyFilename of the current platform. This will be influenced by GOOS environment variable.

func ConfigFilenameFor added in v0.2.0

func ConfigFilenameFor(platform string) values.String

ConfigFilenameFor queries the ConfigFilename of the current platform. This will be influenced by GOOS environment variable.

func ListenAddressFor added in v0.2.0

func ListenAddressFor(platform string) values.SocketAddress

ListenAddressFor queries the ListenAddress of the current platform. This will be influenced by GOOS environment variable.

Types

type Defaults

type Defaults struct {
	// ListenAddress represents the default address caretakerd listens to.
	ListenAddress values.SocketAddress
	// AuthFileKeyFilename represents the default file name caretakerd uses to store
	// the key for the caretakerctl/control process.
	AuthFileKeyFilename values.String
	// ConfigFilename represents the default location where caretakerd searches for its config file (yaml).
	ConfigFilename values.String
}

Defaults holds default values for a specific platform.

func GetDefaultsFor

func GetDefaultsFor(platform string) Defaults

GetDefaultsFor queries the caretakerd default values of the given platform.

Jump to

Keyboard shortcuts

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