config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 4 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 {
	SingleDirectoryMode bool          `yaml:"single_directory_mode,omitempty"`
	RetryInterval       time.Duration `yaml:"retry_interval,omitempty"`
	IgnoreFolders       []string      `yaml:"ignore_folders,omitempty"`
}

func GetConfig

func GetConfig(path string) (*Config, error)

type UpdateConfig

type UpdateConfig struct {
	PreUpdateCommands  []string `yaml:"pre_update_commands,omitempty"`
	UpdateCommands     []string `yaml:"update_commands,omitempty"`
	PostUpdateCommands []string `yaml:"post_update_commands,omitempty"`
}

func GetUpdateConfig

func GetUpdateConfig(path string) (*UpdateConfig, error)

Jump to

Keyboard shortcuts

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