api

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompletionRequest

func NewCompletionRequest(server string, params *CompletionParams) (*http.Request, error)

NewCompletionRequest generates requests for Completion

func NewConnectionsRequest

func NewConnectionsRequest(server string) (*http.Request, error)

NewConnectionsRequest generates requests for Connections

func NewDeviceStatsRequest

func NewDeviceStatsRequest(server string) (*http.Request, error)

NewDeviceStatsRequest generates requests for DeviceStats

func NewDevicesRequest

func NewDevicesRequest(server string) (*http.Request, error)

NewDevicesRequest generates requests for Devices

func NewFolderErrorsRequest

func NewFolderErrorsRequest(server string, params *FolderErrorsParams) (*http.Request, error)

NewFolderErrorsRequest generates requests for FolderErrors

func NewFoldersRequest

func NewFoldersRequest(server string) (*http.Request, error)

NewFoldersRequest generates requests for Folders

func NewHealthRequest

func NewHealthRequest(server string) (*http.Request, error)

NewHealthRequest generates requests for Health

func NewSystemErrorsRequest

func NewSystemErrorsRequest(server string) (*http.Request, error)

NewSystemErrorsRequest generates requests for SystemErrors

func NewSystemStatusRequest added in v0.0.3

func NewSystemStatusRequest(server string) (*http.Request, error)

NewSystemStatusRequest generates requests for SystemStatus

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) Completion

func (c *Client) Completion(ctx context.Context, params *CompletionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Connections

func (c *Client) Connections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeviceStats

func (c *Client) DeviceStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Devices

func (c *Client) Devices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FolderErrors

func (c *Client) FolderErrors(ctx context.Context, params *FolderErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Folders

func (c *Client) Folders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Health

func (c *Client) Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SystemErrors

func (c *Client) SystemErrors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SystemStatus added in v0.0.3

func (c *Client) SystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// Devices request
	Devices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Folders request
	Folders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Completion request
	Completion(ctx context.Context, params *CompletionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FolderErrors request
	FolderErrors(ctx context.Context, params *FolderErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Health request
	Health(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeviceStats request
	DeviceStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Connections request
	Connections(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SystemErrors request
	SystemErrors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SystemStatus request
	SystemStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CompletionWithResponse

func (c *ClientWithResponses) CompletionWithResponse(ctx context.Context, params *CompletionParams, reqEditors ...RequestEditorFn) (*CompletionResponse, error)

CompletionWithResponse request returning *CompletionResponse

func (*ClientWithResponses) ConnectionsWithResponse

func (c *ClientWithResponses) ConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConnectionsResponse, error)

ConnectionsWithResponse request returning *ConnectionsResponse

func (*ClientWithResponses) DeviceStatsWithResponse

func (c *ClientWithResponses) DeviceStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeviceStatsResponse, error)

DeviceStatsWithResponse request returning *DeviceStatsResponse

func (*ClientWithResponses) DevicesWithResponse

func (c *ClientWithResponses) DevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DevicesResponse, error)

DevicesWithResponse request returning *DevicesResponse

func (*ClientWithResponses) FolderErrorsWithResponse

func (c *ClientWithResponses) FolderErrorsWithResponse(ctx context.Context, params *FolderErrorsParams, reqEditors ...RequestEditorFn) (*FolderErrorsResponse, error)

FolderErrorsWithResponse request returning *FolderErrorsResponse

func (*ClientWithResponses) FoldersWithResponse

func (c *ClientWithResponses) FoldersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FoldersResponse, error)

FoldersWithResponse request returning *FoldersResponse

func (*ClientWithResponses) HealthWithResponse

func (c *ClientWithResponses) HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)

HealthWithResponse request returning *HealthResponse

func (*ClientWithResponses) SystemErrorsWithResponse

func (c *ClientWithResponses) SystemErrorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SystemErrorsResponse, error)

SystemErrorsWithResponse request returning *SystemErrorsResponse

func (*ClientWithResponses) SystemStatusWithResponse added in v0.0.3

func (c *ClientWithResponses) SystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SystemStatusResponse, error)

SystemStatusWithResponse request returning *SystemStatusResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// DevicesWithResponse request
	DevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DevicesResponse, error)

	// FoldersWithResponse request
	FoldersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FoldersResponse, error)

	// CompletionWithResponse request
	CompletionWithResponse(ctx context.Context, params *CompletionParams, reqEditors ...RequestEditorFn) (*CompletionResponse, error)

	// FolderErrorsWithResponse request
	FolderErrorsWithResponse(ctx context.Context, params *FolderErrorsParams, reqEditors ...RequestEditorFn) (*FolderErrorsResponse, error)

	// HealthWithResponse request
	HealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthResponse, error)

	// DeviceStatsWithResponse request
	DeviceStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeviceStatsResponse, error)

	// ConnectionsWithResponse request
	ConnectionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConnectionsResponse, error)

	// SystemErrorsWithResponse request
	SystemErrorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SystemErrorsResponse, error)

	// SystemStatusWithResponse request
	SystemStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SystemStatusResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CompletionParams

type CompletionParams struct {
	// Folder folder specifies the folder ID to calculate completion for. An empty
	// or absent folder parameter means all folders as an aggregate.
	Folder string `form:"folder" json:"folder"`

	// Device device specifies the device ID to calculate completion for. An empty
	// or absent device parameter means the local device.
	Device string `form:"device" json:"device"`
}

CompletionParams defines parameters for Completion.

type CompletionResponse

type CompletionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FolderCompletion
	JSONDefault  *Error
}

func ParseCompletionResponse

func ParseCompletionResponse(rsp *http.Response) (*CompletionResponse, error)

ParseCompletionResponse parses an HTTP response from a CompletionWithResponse call

func (CompletionResponse) Status

func (r CompletionResponse) Status() string

Status returns HTTPResponse.Status

func (CompletionResponse) StatusCode

func (r CompletionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConnectionInfo

type ConnectionInfo struct {
	Address       string    `json:"address"`
	At            time.Time `json:"at"`
	Crypto        string    `json:"crypto"`
	InBytesTotal  int64     `json:"inBytesTotal"`
	IsLocal       bool      `json:"isLocal"`
	OutBytesTotal int64     `json:"outBytesTotal"`
	StartedAt     time.Time `json:"startedAt"`
	Type          string    `json:"type"`
}

ConnectionInfo defines model for ConnectionInfo.

type ConnectionStats

type ConnectionStats struct {
	Address       string           `json:"address"`
	At            time.Time        `json:"at"`
	ClientVersion string           `json:"clientVersion"`
	Connected     bool             `json:"connected"`
	Crypto        string           `json:"crypto"`
	InBytesTotal  int64            `json:"inBytesTotal"`
	IsLocal       bool             `json:"isLocal"`
	OutBytesTotal int64            `json:"outBytesTotal"`
	Paused        bool             `json:"paused"`
	Primary       ConnectionInfo   `json:"primary"`
	Secondary     []ConnectionInfo `json:"secondary"`
	StartedAt     time.Time        `json:"startedAt"`
	Type          string           `json:"type"`
}

ConnectionStats defines model for ConnectionStats.

type ConnectionStatusEntry added in v0.0.3

type ConnectionStatusEntry struct {
	Error string    `json:"error"`
	When  time.Time `json:"when"`
}

ConnectionStatusEntry defines model for ConnectionStatusEntry.

type Connections

type Connections struct {
	Connections map[string]ConnectionStats `json:"connections"`
	Total       ConnectionsTotal           `json:"total"`
}

Connections defines model for Connections.

type ConnectionsResponse

type ConnectionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Connections
	JSONDefault  *Error
}

func ParseConnectionsResponse

func ParseConnectionsResponse(rsp *http.Response) (*ConnectionsResponse, error)

ParseConnectionsResponse parses an HTTP response from a ConnectionsWithResponse call

func (ConnectionsResponse) Status

func (r ConnectionsResponse) Status() string

Status returns HTTPResponse.Status

func (ConnectionsResponse) StatusCode

func (r ConnectionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConnectionsTotal

type ConnectionsTotal struct {
	At            time.Time `json:"at"`
	InBytesTotal  int64     `json:"inBytesTotal"`
	OutBytesTotal int64     `json:"outBytesTotal"`
}

ConnectionsTotal defines model for ConnectionsTotal.

type DeviceConfiguration

type DeviceConfiguration struct {
	Addresses                []string         `json:"addresses"`
	AllowedNetworks          []string         `json:"allowedNetworks"`
	AutoAcceptFolders        bool             `json:"autoAcceptFolders"`
	CertName                 string           `json:"certName"`
	Compression              string           `json:"compression"`
	DeviceID                 string           `json:"deviceID"`
	IgnoredFolders           []ObservedFolder `json:"ignoredFolders"`
	IntroducedBy             string           `json:"introducedBy"`
	Introducer               bool             `json:"introducer"`
	MaxRecvKbps              int              `json:"maxRecvKbps"`
	MaxRequestKiB            int              `json:"maxRequestKiB"`
	MaxSendKbps              int              `json:"maxSendKbps"`
	Name                     string           `json:"name"`
	NumConnections           int              `json:"numConnections"`
	Paused                   bool             `json:"paused"`
	RemoteGUIPort            int              `json:"remoteGUIPort"`
	SkipIntroductionRemovals bool             `json:"skipIntroductionRemovals"`
	Untrusted                bool             `json:"untrusted"`
}

DeviceConfiguration defines model for DeviceConfiguration.

type DeviceStatistics

type DeviceStatistics struct {
	LastConnectionDurationS float64   `json:"lastConnectionDurationS"`
	LastSeen                time.Time `json:"lastSeen"`
}

DeviceStatistics defines model for DeviceStatistics.

type DeviceStatsResponse

type DeviceStatsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]DeviceStatistics
	JSONDefault  *Error
}

func ParseDeviceStatsResponse

func ParseDeviceStatsResponse(rsp *http.Response) (*DeviceStatsResponse, error)

ParseDeviceStatsResponse parses an HTTP response from a DeviceStatsWithResponse call

func (DeviceStatsResponse) Status

func (r DeviceStatsResponse) Status() string

Status returns HTTPResponse.Status

func (DeviceStatsResponse) StatusCode

func (r DeviceStatsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DevicesResponse

type DevicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DeviceConfiguration
	JSONDefault  *Error
}

func ParseDevicesResponse

func ParseDevicesResponse(rsp *http.Response) (*DevicesResponse, error)

ParseDevicesResponse parses an HTTP response from a DevicesWithResponse call

func (DevicesResponse) Status

func (r DevicesResponse) Status() string

Status returns HTTPResponse.Status

func (DevicesResponse) StatusCode

func (r DevicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DiscoveryStatusEntry added in v0.0.3

type DiscoveryStatusEntry struct {
	Error string `json:"error"`
}

DiscoveryStatusEntry defines model for DiscoveryStatusEntry.

type Error

type Error struct {
	Error string `json:"error"`
}

Error defines model for Error.

type FileError

type FileError struct {
	Error string `json:"error"`
	Path  string `json:"path"`
}

FileError defines model for FileError.

type FolderCompletion

type FolderCompletion struct {
	Completion  float64 `json:"completion"`
	GlobalBytes int64   `json:"globalBytes"`
	GlobalItems int     `json:"globalItems"`
	NeedBytes   int64   `json:"needBytes"`
	NeedDeletes int     `json:"needDeletes"`
	NeedItems   int     `json:"needItems"`
	RemoteState string  `json:"remoteState"`
	Sequence    int64   `json:"sequence"`
}

FolderCompletion defines model for FolderCompletion.

type FolderConfiguration

type FolderConfiguration struct {
	AutoNormalize           bool                        `json:"autoNormalize"`
	BlockPullOrder          string                      `json:"blockPullOrder"`
	CaseSensitiveFs         bool                        `json:"caseSensitiveFs"`
	Copiers                 int                         `json:"copiers"`
	CopyOwnershipFromParent bool                        `json:"copyOwnershipFromParent"`
	CopyRangeMethod         string                      `json:"copyRangeMethod"`
	Devices                 []FolderDeviceConfiguration `json:"devices"`
	DisableFsync            bool                        `json:"disableFsync"`
	DisableSparseFiles      bool                        `json:"disableSparseFiles"`
	DisableTempIndexes      bool                        `json:"disableTempIndexes"`
	FilesystemType          string                      `json:"filesystemType"`
	FollowJunctions         bool                        `json:"followJunctions"`
	FsWatcherDelayS         float64                     `json:"fsWatcherDelayS"`
	FsWatcherEnabled        bool                        `json:"fsWatcherEnabled"`
	Hashers                 int                         `json:"hashers"`
	Id                      string                      `json:"id"`
	IgnoreDelete            bool                        `json:"ignoreDelete"`
	IgnorePerms             bool                        `json:"ignorePerms"`
	Label                   string                      `json:"label"`
	MarkerName              string                      `json:"markerName"`
	MaxConcurrentWrites     int                         `json:"maxConcurrentWrites"`
	MaxConflicts            int                         `json:"maxConflicts"`
	MinDiskFree             Size                        `json:"minDiskFree"`
	ModTimeWindowS          int                         `json:"modTimeWindowS"`
	Order                   string                      `json:"order"`
	Path                    string                      `json:"path"`
	Paused                  bool                        `json:"paused"`
	PullerMaxPendingKib     int                         `json:"pullerMaxPendingKib"`
	PullerPauseS            int                         `json:"pullerPauseS"`
	RescanIntervalS         int                         `json:"rescanIntervalS"`
	ScanProgressIntervalS   int                         `json:"scanProgressIntervalS"`
	SendOwnership           bool                        `json:"sendOwnership"`
	SendXattrs              bool                        `json:"sendXattrs"`
	SyncOwnership           bool                        `json:"syncOwnership"`
	SyncXattrs              bool                        `json:"syncXattrs"`
	Type                    string                      `json:"type"`
	Versioning              VersioningConfiguration     `json:"versioning"`
	WeakHashThresholdPct    int                         `json:"weakHashThresholdPct"`
	XattrFilter             XattrFilter                 `json:"xattrFilter"`
}

FolderConfiguration defines model for FolderConfiguration.

type FolderDeviceConfiguration

type FolderDeviceConfiguration struct {
	DeviceId           string `json:"deviceId"`
	EncryptionPassword string `json:"encryptionPassword"`
	IntroducedBy       string `json:"introducedBy"`
}

FolderDeviceConfiguration defines model for FolderDeviceConfiguration.

type FolderErrors

type FolderErrors struct {
	Errors  []FileError `json:"errors"`
	Folder  string      `json:"folder"`
	Page    int         `json:"page"`
	Perpage int         `json:"perpage"`
}

FolderErrors defines model for FolderErrors.

type FolderErrorsParams

type FolderErrorsParams struct {
	Folder  string  `form:"folder" json:"folder"`
	Page    *string `form:"page,omitempty" json:"page,omitempty"`
	Perpage *string `form:"perpage,omitempty" json:"perpage,omitempty"`
}

FolderErrorsParams defines parameters for FolderErrors.

type FolderErrorsResponse

type FolderErrorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FolderErrors
	JSONDefault  *Error
}

func ParseFolderErrorsResponse

func ParseFolderErrorsResponse(rsp *http.Response) (*FolderErrorsResponse, error)

ParseFolderErrorsResponse parses an HTTP response from a FolderErrorsWithResponse call

func (FolderErrorsResponse) Status

func (r FolderErrorsResponse) Status() string

Status returns HTTPResponse.Status

func (FolderErrorsResponse) StatusCode

func (r FolderErrorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FoldersResponse

type FoldersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]FolderConfiguration
	JSONDefault  *Error
}

func ParseFoldersResponse

func ParseFoldersResponse(rsp *http.Response) (*FoldersResponse, error)

ParseFoldersResponse parses an HTTP response from a FoldersWithResponse call

func (FoldersResponse) Status

func (r FoldersResponse) Status() string

Status returns HTTPResponse.Status

func (FoldersResponse) StatusCode

func (r FoldersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthResponse

type HealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HealthStatus
	JSONDefault  *Error
}

func ParseHealthResponse

func ParseHealthResponse(rsp *http.Response) (*HealthResponse, error)

ParseHealthResponse parses an HTTP response from a HealthWithResponse call

func (HealthResponse) Status

func (r HealthResponse) Status() string

Status returns HTTPResponse.Status

func (HealthResponse) StatusCode

func (r HealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthStatus

type HealthStatus struct {
	Status string `json:"status"`
}

HealthStatus defines model for HealthStatus.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListenerStatusEntry added in v0.0.3

type ListenerStatusEntry struct {
	Error        string   `json:"error"`
	LanAddresses []string `json:"lanAddresses"`
	WanAddresses []string `json:"wanAddresses"`
}

ListenerStatusEntry defines model for ListenerStatusEntry.

type LogLine

type LogLine struct {
	Level   int       `json:"level"`
	Message string    `json:"message"`
	When    time.Time `json:"when"`
}

LogLine defines model for LogLine.

type ObservedFolder

type ObservedFolder struct {
	Id    string    `json:"id"`
	Label string    `json:"label"`
	Time  time.Time `json:"time"`
}

ObservedFolder defines model for ObservedFolder.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Size

type Size struct {
	Unit  string  `json:"unit"`
	Value float32 `json:"value"`
}

Size defines model for Size.

type SystemErrors

type SystemErrors struct {
	Errors []LogLine `json:"errors"`
}

SystemErrors defines model for SystemErrors.

type SystemErrorsResponse

type SystemErrorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SystemErrors
	JSONDefault  *Error
}

func ParseSystemErrorsResponse

func ParseSystemErrorsResponse(rsp *http.Response) (*SystemErrorsResponse, error)

ParseSystemErrorsResponse parses an HTTP response from a SystemErrorsWithResponse call

func (SystemErrorsResponse) Status

func (r SystemErrorsResponse) Status() string

Status returns HTTPResponse.Status

func (SystemErrorsResponse) StatusCode

func (r SystemErrorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SystemStatus added in v0.0.3

type SystemStatus struct {
	Alloc                   uint64                           `json:"alloc"`
	ConnectionServiceStatus map[string]ListenerStatusEntry   `json:"connectionServiceStatus"`
	DiscoveryEnabled        bool                             `json:"discoveryEnabled"`
	DiscoveryStatus         map[string]DiscoveryStatusEntry  `json:"discoveryStatus"`
	Goroutines              int                              `json:"goroutines"`
	GuiAddressOverridden    bool                             `json:"guiAddressOverridden"`
	GuiAddressUsed          string                           `json:"guiAddressUsed"`
	LastDialStatus          map[string]ConnectionStatusEntry `json:"lastDialStatus"`
	MyID                    string                           `json:"myID"`
	PathSeparator           string                           `json:"pathSeparator"`
	StartTime               time.Time                        `json:"startTime"`
	Sys                     uint64                           `json:"sys"`
	Tilde                   string                           `json:"tilde"`
	Uptime                  int                              `json:"uptime"`
	UrVersionMax            int                              `json:"urVersionMax"`
}

SystemStatus defines model for SystemStatus.

type SystemStatusResponse added in v0.0.3

type SystemStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SystemStatus
	JSONDefault  *Error
}

func ParseSystemStatusResponse added in v0.0.3

func ParseSystemStatusResponse(rsp *http.Response) (*SystemStatusResponse, error)

ParseSystemStatusResponse parses an HTTP response from a SystemStatusWithResponse call

func (SystemStatusResponse) Status added in v0.0.3

func (r SystemStatusResponse) Status() string

Status returns HTTPResponse.Status

func (SystemStatusResponse) StatusCode added in v0.0.3

func (r SystemStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VersioningConfiguration

type VersioningConfiguration struct {
	CleanupIntervalS int               `json:"cleanupIntervalS"`
	FsPath           string            `json:"fsPath"`
	FsType           string            `json:"fsType"`
	Params           map[string]string `json:"params"`
	Type             string            `json:"type"`
}

VersioningConfiguration defines model for VersioningConfiguration.

type XattrFilter

type XattrFilter struct {
	Entries            []XattrFilterEntry `json:"entries"`
	MaxSingleEntrySize int                `json:"maxSingleEntrySize"`
	MaxTotalSize       int                `json:"maxTotalSize"`
}

XattrFilter defines model for XattrFilter.

type XattrFilterEntry

type XattrFilterEntry struct {
	Match  string `json:"match"`
	Permit bool   `json:"permit"`
}

XattrFilterEntry defines model for XattrFilterEntry.

Jump to

Keyboard shortcuts

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