config

package
v0.0.0-...-66129a4 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DirectoryMode is the default mode to apply to directories
	DirectoryMode os.FileMode = 0755

	// ExecutableMode is the default mode for executable files
	ExecutableMode os.FileMode = 0755

	// FileMode is the default mode to apply to files
	FileMode os.FileMode = 0644

	KeyBackupPlexDest      string = "backup.plex.dest"
	KeyBackupPlexSrc       string = "backup.plex.src"
	KeyNASFQDN             string = "nas.fqdn"
	KeySCPChownGID         string = "scp.chown.gid"
	KeySCPChownGroup       string = "scp.chown.group"
	KeySCPChownUID         string = "scp.chown.uid"
	KeySCPChownUser        string = "scp.chown.user"
	KeySCPDestAnimesPath   string = "scp.dest.animespath"
	KeySCPDestMoviesPath   string = "scp.dest.moviespath"
	KeySCPDestTVShowsPath  string = "scp.dest.tvshowspath"
	KeySSHClientKnownHosts string = "ssh.client.knownhosts"
	KeySSHClientPrivateKey string = "ssh.client.privatekey"
	KeySSHHost             string = "ssh.host"
	KeySSHPort             string = "ssh.port"
	KeySSHUser             string = "ssh.user"
	KeySubsyncOptions      string = "subsync.options"
)

Variables

View Source
var (
	// GID is the processed files group to set
	GID int

	// Configuration directory
	Dir string

	// Configuration file name
	FileName string = ".nascliconfig"

	// Configuration keys in INI file order
	OrderedKeys = []string{
		KeyNASFQDN,
		KeyBackupPlexSrc,
		KeyBackupPlexDest,
		KeySCPChownGID,
		KeySCPChownGroup,
		KeySCPChownUID,
		KeySCPChownUser,
		KeySCPDestAnimesPath,
		KeySCPDestMoviesPath,
		KeySCPDestTVShowsPath,
		KeySSHHost,
		KeySSHPort,
		KeySSHUser,
		KeySSHClientKnownHosts,
		KeySSHClientPrivateKey,
		KeySubsyncOptions,
	}

	// UID is the processed files owner to set
	UID int

	// WD is the working directory's absolute path
	WD string
)

Functions

func Save

func Save() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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