Documentation ¶
Index ¶
- type SyncthingAPI
- func (api *SyncthingAPI) Connections() (map[string]SyncthingConnection, error)
- func (api *SyncthingAPI) CreateDevice(device SyncthingDevice) error
- func (api *SyncthingAPI) CreateFolder(folder SyncthingFolder) error
- func (api *SyncthingAPI) Devices() ([]SyncthingDevice, error)
- func (api *SyncthingAPI) File(folderID, path string) (*SyncthingFileResponse, error)
- func (api *SyncthingAPI) Folders() ([]SyncthingFolder, error)
- func (api *SyncthingAPI) Get(endpoint string, out any) error
- func (api *SyncthingAPI) Ignore(folderID, glob string) error
- func (api *SyncthingAPI) MyGUID() (string, error)
- func (api *SyncthingAPI) Post(endpoint string, data io.Reader, out any) error
- func (api *SyncthingAPI) Request(method string, endpoint string, data io.Reader, out any) error
- func (api *SyncthingAPI) Unignore(folderID, glob string) error
- type SyncthingConnection
- type SyncthingConnections
- type SyncthingDevice
- type SyncthingFile
- type SyncthingFileResponse
- type SyncthingFolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SyncthingAPI ¶
func (*SyncthingAPI) Connections ¶
func (api *SyncthingAPI) Connections() (map[string]SyncthingConnection, error)
func (*SyncthingAPI) CreateDevice ¶
func (api *SyncthingAPI) CreateDevice(device SyncthingDevice) error
func (*SyncthingAPI) CreateFolder ¶
func (api *SyncthingAPI) CreateFolder(folder SyncthingFolder) error
func (*SyncthingAPI) Devices ¶
func (api *SyncthingAPI) Devices() ([]SyncthingDevice, error)
func (*SyncthingAPI) File ¶
func (api *SyncthingAPI) File(folderID, path string) (*SyncthingFileResponse, error)
func (*SyncthingAPI) Folders ¶
func (api *SyncthingAPI) Folders() ([]SyncthingFolder, error)
func (*SyncthingAPI) Ignore ¶
func (api *SyncthingAPI) Ignore(folderID, glob string) error
func (*SyncthingAPI) MyGUID ¶
func (api *SyncthingAPI) MyGUID() (string, error)
func (*SyncthingAPI) Unignore ¶
func (api *SyncthingAPI) Unignore(folderID, glob string) error
TODO: Break out duplicate code here and in Ignore into a third function which both may use.
type SyncthingConnection ¶
type SyncthingConnections ¶
type SyncthingConnections struct {
Connections map[string]SyncthingConnection
}
type SyncthingDevice ¶
type SyncthingFile ¶
type SyncthingFile struct {
Ignored bool `json:"ignored"`
}
type SyncthingFileResponse ¶
type SyncthingFileResponse struct {
Local SyncthingFile `json:"local"`
}
type SyncthingFolder ¶
Click to show internal directories.
Click to hide internal directories.