Documentation ¶
Index ¶
Constants ¶
View Source
const ( NOT_ENCRYPTED = 0 ENCRYPTED_LOCKED = 1 ENCRYPTED_UNLOCKED = 2 )
Variables ¶
View Source
var SYNO_ERR_CODES = map[int]string{
402: "This shared folder doesn't exist.",
3308: "The password is invalid.",
}
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListShares ¶
type ClientError ¶
func NewClientError ¶
func NewClientError(context string, err error) ClientError
type EncryptionStatus ¶
type EncryptionStatus int8
func (EncryptionStatus) String ¶
func (e EncryptionStatus) String() string
type ListSharesResponse ¶
type ListSharesResponse struct { Share } // contains filtered or unexported fields }Shares []
func (*ListSharesResponse) Successful ¶
func (s *ListSharesResponse) Successful() bool
type LoginResponse ¶
type LoginResponse struct { Data struct { Sid string } // contains filtered or unexported fields }
func (*LoginResponse) Successful ¶
func (s *LoginResponse) Successful() bool
type SynoBaseResponse ¶
type SynoError ¶
type SynoError interface { ClientError Code() int Description() string }
func NewSynoError ¶
type SynoResponse ¶
type SynoResponse struct { Data map[string]interface{} // contains filtered or unexported fields }
func (*SynoResponse) Successful ¶
func (s *SynoResponse) Successful() bool
Click to show internal directories.
Click to hide internal directories.