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" KeySCPDestAnimesPaths string = "scp.dest.animespaths" KeySCPDestMoviesPaths string = "scp.dest.moviespaths" KeySCPDestTVShowsPaths string = "scp.dest.tvshowspaths" 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 ( // Application name, overridden as ldflag. AppName = "nas-cli" // Build timestamp, overridden as ldflag. BuildDate = "N/A" // Compiler toolchain that was used to build the binary. Compiler = fmt.Sprintf("%s/%s", runtime.Compiler, runtime.Version()) // Last git commit hash, overridden as ldflag. GitCommit = "0000000000000000000000000000000000000000" // System OS and architecture the binary is built for. Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH) // Version is the Calendar Versioning string, overridden as ldflag. Version = "latest" )
Variables overridden with ldflags.
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, KeySCPDestAnimesPaths, KeySCPDestMoviesPaths, KeySCPDestTVShowsPaths, 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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.