syncthing-hs-0.3.0.0: Haskell bindings for the Syncthing REST API

Copyright(c) 2014 Jens Thomas
LicenseBSD-style
Maintainerjetho@gmx.de
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Network.Syncthing.Types

Contents

Description

Type synonyms and data types.

Synopsis

Type Synonyms

type Server = Text Source

Use the SERVER:PORT format for specifying servers.

type Device = Text Source

type FolderName = Text Source

type Path = Text Source

type Host = Text Source

type Port = Int Source

Data Types

data CacheEntry Source

Represents an entry in the discovery cache.

Constructors

CacheEntry 

Instances

data Config Source

The current configuration data structure.

Instances

Eq Config 
Show Config 
ToJSON Config 
FromJSON Config 

data AddressType Source

An address can be dynamic or static.

Constructors

Dynamic 
Address Addr 

data DeviceConfig Source

Device specific configuration information.

Constructors

DeviceConfig 

data VersioningConfig Source

Information about versioning.

Constructors

VersioningConfig 

Fields

getType :: Text
 
getParams :: Map Text Text
 

data GuiConfig Source

Gui settings.

Constructors

GuiConfig 

Fields

getEnabled :: Bool
 
getApiKey :: Maybe Text
 
getGuiAddress :: Addr
 
getUser :: Text
 
getPassword :: Text
 
getUseTLS :: Bool
 

Instances

data Connections Source

Contains the list of current connections.

Instances

data Connection Source

Connection information and some associated metadata.

Instances

data DeviceInfo Source

Contains information about a device.

Constructors

DeviceInfo 

Instances

data DirTree Source

A directory tree contains files or subdirectories.

Constructors

Dir 

Fields

getDirContents :: Map Text DirTree
 
File 

Fields

getModTime :: Maybe UTCTime

file modification time

getFileSize :: Integer

file size

Instances

data Error Source

An error message and its timestamp.

Constructors

Error 

Fields

getTime :: Maybe UTCTime
 
getMsg :: Text
 

Instances

Eq Error 
Show Error 
FromJSON Error 

data Ignore Source

Contains the ignores list and a list of all compiled ignore patterns.

Constructors

Ignore 

Fields

getIgnores :: Maybe [Text]
 
getPatterns :: Maybe [Text]
 

Instances

Eq Ignore 
Show Ignore 
FromJSON Ignore 

data ModelState Source

The current state of activity of a folder.

Constructors

Idle 
Scanning 
Cleaning 
Syncing 

data Need Source

Contains lists of files which are needed by a device for becoming in sync.

Constructors

Need 

Instances

Eq Need 
Show Need 
FromJSON Need 

data DBFile Source

Contains data available about a given file.

Constructors

DBFile 

Instances

Eq DBFile 
Show DBFile 
FromJSON DBFile 

data FileInfo Source

All available information about a file.

Constructors

FileInfo 

Instances

data FolderInfo Source

Contains general statistics about folders.

Constructors

FolderInfo 

Instances

data LastFile Source

Information about the last synced file.

Constructors

LastFile 

Fields

getFileName :: Text
 
getSyncedAt :: Maybe UTCTime
 

Instances

data System Source

Information about the system status and resource usage.

Instances

Eq System 
Show System 
FromJSON System 

data SystemMsg Source

System messages.

Instances

data Upgrade Source

Information about the current software version and upgrade possibilities.

Constructors

Upgrade 

Fields

getLatest :: Text
 
getNewer :: Bool
 
getRunning :: Text
 

Instances

data UsageReport Source

Information about the data sent in the anonymous usage report.

Instances

data Version Source

Current Syncthing version information.

Constructors

Version 

Fields

getArch :: Text
 
getLongVersion :: Text
 
getOs :: Text
 
getVersion :: Text
 

Instances