config

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SyncoYamlFile = ".synco.yml"

Variables

This section is empty.

Functions

func WriteToFile

func WriteToFile(syncoConfig SyncoConfig) error

Types

type SyncoConfig

type SyncoConfig struct {
	Hosts []SyncoHostConfig `yaml:"hosts"`
}

SyncoConfig is the main structure which is serialized from/to .synco.yml files. It contains client-side config (for `synco receive`).

func ReadFromYaml

func ReadFromYaml() (SyncoConfig, error)

type SyncoHostConfig

type SyncoHostConfig struct {
	BaseUrl string `yaml:"baseUrl"`
}

Jump to

Keyboard shortcuts

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