config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsValidRemote

func AsValidRemote(ctx context.Context, remote string, unattended bool) (string, error)

func ShowRcloneConfigPath

func ShowRcloneConfigPath()

Types

type GlobalConfig

type GlobalConfig struct {
	Machines []*Machine `json:"machines"`
}

GlobalConfig represents the top-level configuration

var Global *GlobalConfig

type Machine

type Machine struct {
	Hostname string   `json:"hostname"`
	Paths    []string `json:"paths"`
	Output   bool     `json:"output"`
	Pre      []string `json:"pre"`
	Post     []string `json:"post"`
}

Machine represents a single machine configuration

func GetCurrentMachine

func GetCurrentMachine() (*Machine, error)

Jump to

Keyboard shortcuts

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