rsyncdconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: BSD-3-Clause Imports: 5 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 {
	Listeners     []Listener      `toml:"listener"`
	Modules       []rsyncd.Module `toml:"module"`
	DontNamespace bool            `toml:"dont_namespace"`
}

func FromDefaultFiles

func FromDefaultFiles() (*Config, string, error)

func FromFile

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

func FromString

func FromString(input string) (*Config, error)

type Listener

type Listener struct {
	Rsyncd         string      `toml:"rsyncd"`
	HTTPMonitoring string      `toml:"http_monitoring"`
	AnonSSH        string      `toml:"anon_ssh"`
	AuthorizedSSH  SSHListener `toml:"authorized_ssh"`
}

type SSHListener

type SSHListener struct {
	Address        string `toml:"address"`
	AuthorizedKeys string `toml:"authorized_keys"`
}

Jump to

Keyboard shortcuts

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